in read_headers (http_client.cpp):
ctx->m_needChunked = boost::iequals(value, U("chunked"));
Above statement will not always work because some site somehow inserts an additional space before the "chunked"
test:
www.cnn.com, "chunked"
news.cnet.com, " chunked"
A dummy workaround (didn't know how to easily trim):
ctx->m_needChunked = boost::iequals(value, U("chunked")); //original
if(!ctx->m_needChunked)
ctx->m_needChunked = boost::iequals(value, U(" chunked")); //additional check
This fixes the issue for this particular case (not sure if similar issue exist for other type of detection).
ctx->m_needChunked = boost::iequals(value, U("chunked"));
Above statement will not always work because some site somehow inserts an additional space before the "chunked"
test:
www.cnn.com, "chunked"
news.cnet.com, " chunked"
A dummy workaround (didn't know how to easily trim):
ctx->m_needChunked = boost::iequals(value, U("chunked")); //original
if(!ctx->m_needChunked)
ctx->m_needChunked = boost::iequals(value, U(" chunked")); //additional check
This fixes the issue for this particular case (not sure if similar issue exist for other type of detection).