|
|
@@ -59,7 +59,8 @@ void setup() {
|
|
|
// Check HTTP status
|
|
|
char status[32] = {0};
|
|
|
client.readBytesUntil('\r', status, sizeof(status));
|
|
|
- if (strcmp(status, "HTTP/1.1 200 OK") != 0) {
|
|
|
+ // It should be "HTTP/1.0 200 OK" or "HTTP/1.1 200 OK"
|
|
|
+ if (strcmp(status + 9, "200 OK") != 0) {
|
|
|
Serial.print(F("Unexpected response: "));
|
|
|
Serial.println(status);
|
|
|
return;
|