mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-04-19 21:22:15 +03:00
Change read() to always check available() if response is chunked
This commit is contained in:
parent
522cf5d11a
commit
2a9c01c210
@ -650,13 +650,10 @@ int HttpClient::available()
|
||||
|
||||
int HttpClient::read()
|
||||
{
|
||||
if (iState == eReadingBodyChunk)
|
||||
{
|
||||
if (!available())
|
||||
if (iIsChunked && !available())
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
int ret = iClient->read();
|
||||
if (ret >= 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user