We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2551186 commit 7ee216fCopy full SHA for 7ee216f
examples/SimpleHttpExample/SimpleHttpExample.ino
@@ -87,7 +87,7 @@ void loop()
87
char c;
88
// Whilst we haven't timed out & haven't reached the end of the body
89
while ( (http.connected() || http.available()) &&
90
- (bodyLen > 0 || bodyLen != HttpClient::kNoContentLengthHeader) &&
+ (!http.endOfBodyReached()) &&
91
((millis() - timeoutStart) < kNetworkTimeout) )
92
{
93
if (http.available())
@@ -96,7 +96,6 @@ void loop()
96
// Print out this character
97
Serial.print(c);
98
99
- bodyLen--;
100
// We read something, reset the timeout counter
101
timeoutStart = millis();
102
}
0 commit comments