8000
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 bfedff8 commit 4b6f4dfCopy full SHA for 4b6f4df
examples/SimpleHttpExample/SimpleHttpExample.ino
@@ -6,8 +6,8 @@
6
// outputs the content to the serial port
7
8
#include <SPI.h>
9
-#include <ArduinoHttpClient.h>
10
#include <WiFi101.h>
+#include <ArduinoHttpClient.h>
11
12
// This example downloads the URL "http://arduino.cc/"
13
@@ -82,6 +82,7 @@ void loop()
82
char c;
83
// Whilst we haven't timed out & haven't reached the end of the body
84
while ( (http.connected() || http.available()) &&
85
+ (bodyLen > 0 || bodyLen != HttpClient::kNoContentLengthHeader) &&
86
((millis() - timeoutStart) < kNetworkTimeout) )
87
{
88
if (http.available())
0 commit comments