mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-04-19 21:22:15 +03:00
Treat 101 status codes as a complete
This commit is contained in:
parent
9328370395
commit
32895db9d6
@ -439,7 +439,7 @@ int HttpClient::responseStatusCode()
|
|||||||
delay(kHttpWaitForDataDelay);
|
delay(kHttpWaitForDataDelay);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( (c == '\n') && (iStatusCode < 200) )
|
if ( (c == '\n') && (iStatusCode < 200 && iStatusCode != 101) )
|
||||||
{
|
{
|
||||||
// We've reached the end of an informational status line
|
// We've reached the end of an informational status line
|
||||||
c = '\0'; // Clear c so we'll go back into the data reading loop
|
c = '\0'; // Clear c so we'll go back into the data reading loop
|
||||||
@ -447,7 +447,7 @@ int HttpClient::responseStatusCode()
|
|||||||
}
|
}
|
||||||
// If we've read a status code successfully but it's informational (1xx)
|
// If we've read a status code successfully but it's informational (1xx)
|
||||||
// loop back to the start
|
// loop back to the start
|
||||||
while ( (iState == eStatusCodeRead) && (iStatusCode < 200) );
|
while ( (iState == eStatusCodeRead) && (iStatusCode < 200 && iStatusCode != 101) );
|
||||||
|
|
||||||
if ( (c == '\n') && (iState == eStatusCodeRead) )
|
if ( (c == '\n') && (iState == eStatusCodeRead) )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user