Skip to content

Commit 467da7c

Browse files
committed
better error handling
1 parent b845d03 commit 467da7c

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
@@ -354,7 +354,7 @@ int HTTPClient::sendRequest(const char * type, Stream * stream, size_t size) {
354354

355355
if(buff) {
356356
// read all data from stream and send it to server
357-
while(connected() && (stream->available() != -1) && (len > 0 || len == -1)) {
357+
while(connected() && (stream->available() > -1) && (len > 0 || len == -1)) {
358358

359359
// get available data size
360360
size_t s = stream->available();

0 commit comments

Comments
 (0)