correct detection of chunked response

This commit is contained in:
orignal 2021-01-29 12:12:40 -05:00
parent daa3f8699b
commit 1ba5d25819

View File

@ -346,7 +346,7 @@ namespace http {
auto it = headers.find("Transfer-Encoding");
if (it == headers.end())
return false;
if (it->second.find("chunked") == std::string::npos)
if (it->second.find("chunked") != std::string::npos)
return true;
return false;
}