Browse Source

correct detection of chunked response

pull/1634/head
orignal 4 years ago
parent
commit
1ba5d25819
  1. 2
      libi2pd/HTTP.cpp

2
libi2pd/HTTP.cpp

@ -346,7 +346,7 @@ namespace http { @@ -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