We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9328370 commit 32895dbCopy full SHA for 32895db
HttpClient.cpp
@@ -439,15 +439,15 @@ int HttpClient::responseStatusCode()
439
delay(kHttpWaitForDataDelay);
440
}
441
442
- if ( (c == '\n') && (iStatusCode < 200) )
+ if ( (c == '\n') && (iStatusCode < 200 && iStatusCode != 101) )
443
{
444
// We've reached the end of an informational status line
445
c = '\0'; // Clear c so we'll go back into the data reading loop
446
447
448
// If we've read a status code successfully but it's informational (1xx)
449
// loop back to the start
450
- while ( (iState == eStatusCodeRead) && (iStatusCode < 200) );
+ while ( (iState == eStatusCodeRead) && (iStatusCode < 200 && iStatusCode != 101) );
451
452
if ( (c == '\n') && (iState == eStatusCodeRead) )
453
0 commit comments