Skip to content

Commit 2f9b13c

Browse files
authored
Merge pull request esp8266#2646 from gadgeteer/patch-1
Fixed PUT(String) method, it called POST in error
2 parents 209c877 + 4dd9fef commit 2f9b13c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ int HTTPClient::PUT(uint8_t * payload, size_t size) {
349349
}
350350

351351
int HTTPClient::PUT(String payload) {
352-
return POST((uint8_t *) payload.c_str(), payload.length());
352+
return PUT((uint8_t *) payload.c_str(), payload.length());
353353
}
354354

355355
/**

0 commit comments

Comments
 (0)