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 2ed77d2 commit 4980ee8Copy full SHA for 4980ee8
examples/JsonHttpClient/JsonHttpClient.ino
@@ -59,7 +59,8 @@ void setup() {
59
// Check HTTP status
60
char status[32] = {0};
61
client.readBytesUntil('\r', status, sizeof(status));
62
- if (strcmp(status, "HTTP/1.1 200 OK") != 0) {
+ // It should be "HTTP/1.0 200 OK" or "HTTP/1.1 200 OK"
63
+ if (strcmp(status + 9, "200 OK") != 0) {
64
Serial.print(F("Unexpected response: "));
65
Serial.println(status);
66
return;
0 commit comments