elnormous / HTTPRequest

Single-header C++ HTTP request class
The Unlicense
942 stars 213 forks source link

A fix for receive response #77

Open wqqn99 opened 6 months ago

wqqn99 commented 6 months ago

Fix problem when receive partly response packet:

diff --git a/thirdparty/HTTPRequest/include/HTTPRequest.hpp b/thirdparty/HTTPRequest/include/HTTPRequest.hpp index c446e216..1c559632 100644 --- a/thirdparty/HTTPRequest/include/HTTPRequest.hpp +++ b/thirdparty/HTTPRequest/include/HTTPRequest.hpp @@ -1198,6 +1198,7 @@ namespace http bool removeCrlfAfterChunk = false;

         // read the response