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

Commit

Permalink
Merge pull request #50 from 1618033/patch-1
Browse files Browse the repository at this point in the history
Fix "blank new line in chunk" bug
  • Loading branch information
khoih-prog authored Nov 30, 2022
2 parents 6fdfafd + 887bdef commit ce452fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AsyncHTTPRequest_Impl_Generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit ce452fb

Please sign in to comment.