8000 Fixed PUT(String) method, it called POST in error · swarren/esp8266-arduino@4dd9fef · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit 4dd9fef

Browse files
authored
Fixed PUT(String) method, it called POST in error
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
1 parent 4897e00 commit 4dd9fef

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)
0