1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

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
This commit is contained in:
Allen Smith
2016-10-28 14:12:38 -04:00
committed by GitHub
parent 4897e0006b
commit 4dd9fef491

View File

@ -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());
}
/**