Merge pull request #50 from 1618033/patch-1

Fix "blank new line in chunk" bug
This commit is contained in:
Khoi Hoang
2022-11-30 03:24:55 -05:00
committed by GitHub

View File

@ -1448,7 +1448,7 @@ void AsyncHTTPRequest::_processChunks()
size_t chunkLength = strtol(chunkHeader.c_str(), nullptr, 16);
_contentLength += chunkLength;
if (chunkLength == 0)
if (chunkHeader == "0\r\n")
{
char* connectionHdr = respHeaderValue("connection");