Skip to content

Commit

Permalink
Fixed PUT(String) method, it called POST in error
Browse files Browse the repository at this point in the history
About the simplest change possible, just delete two characters and add one. The PUT(String) convenience method called the full POST method instead of calling the PUT method
  • Loading branch information
gadgeteer authored Oct 28, 2016
1 parent 4897e00 commit 4dd9fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ int HTTPClient::PUT(uint8_t * payload, size_t size) {
}

int HTTPClient::PUT(String payload) {
return POST((uint8_t *) payload.c_str(), payload.length());
return PUT((uint8_t *) payload.c_str(), payload.length());
}

/**
Expand Down

0 comments on commit 4dd9fef

Please sign in to comment.