Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit ce452fb

Browse files
authored
Merge pull request #50 from 1618033/patch-1
Fix "blank new line in chunk" bug
2 parents 6fdfafd + 887bdef commit ce452fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AsyncHTTPRequest_Impl_Generic.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ void AsyncHTTPRequest::_processChunks()
14481448
size_t chunkLength = strtol(chunkHeader.c_str(), nullptr, 16);
14491449
_contentLength += chunkLength;
14501450

1451-
if (chunkLength == 0)
1451+
if (chunkHeader == "0\r\n")
14521452
{
14531453
char* connectionHdr = respHeaderValue("connection");
14541454

0 commit comments

Comments
 (0)