correct detection of chunked response

pull/1634/head
orignal 3 years ago
parent daa3f8699b
commit 1ba5d25819

@ -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;
}

Loading…
Cancel
Save