mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
better error handling
This commit is contained in:
@ -354,7 +354,7 @@ int HTTPClient::sendRequest(const char * type, Stream * stream, size_t size) {
|
|||||||
|
|
||||||
if(buff) {
|
if(buff) {
|
||||||
// read all data from stream and send it to server
|
// read all data from stream and send it to server
|
||||||
while(connected() && (stream->available() != -1) && (len > 0 || len == -1)) {
|
while(connected() && (stream->available() > -1) && (len > 0 || len == -1)) {
|
||||||
|
|
||||||
// get available data size
|
// get available data size
|
||||||
size_t s = stream->available();
|
size_t s = stream->available();
|
||||||
|
Reference in New Issue
Block a user