| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2551186 commit 7ee216f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -87,7 +87,7 @@ void loop() | |||
| 87 | 87 | char c; | |
| 88 | 88 | // Whilst we haven't timed out & haven't reached the end of the body | |
| 89 | 89 | while ( (http.connected() || http.available()) && | |
| 90 | - (bodyLen > 0 || bodyLen != HttpClient::kNoContentLengthHeader) && | ||
| 90 | + (!http.endOfBodyReached()) && | ||
| 91 | 91 | ((millis() - timeoutStart) < kNetworkTimeout) ) | |
| 92 | 92 | { | |
| 93 | 93 | if (http.available()) | |
@@ -96,7 +96,6 @@ void loop() | |||
| 96 | 96 | // Print out this character | |
| 97 | 97 | Serial.print(c); | |
| 98 | 98 | ||
| 99 | - bodyLen--; | ||
| 100 | 99 | // We read something, reset the timeout counter | |
| 101 | 100 | timeoutStart = millis(); | |
| 102 | 101 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments