Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

Created Issue: Linux: "chunked" detection logic doesn't work in all cases [2]

$
0
0
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):

if(!ctx->m_needChunked)
ctx->m_needChunked = boost::iequals(value, U(" chunked"));

This fixes the issue for this particular case (not sure if similar issue exist for other type of detection).

Viewing all articles
Browse latest Browse all 4845

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>