mirror of
https://github.com/khoih-prog/AsyncHTTPRequest_Generic.git
synced 2025-07-29 18:07:15 +02:00
Merge pull request #50 from 1618033/patch-1
Fix "blank new line in chunk" bug
This commit is contained in:
@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user