Open jhandley opened 7 years ago
We have explicit APIs for manipulating some headers (such as content length), which is why they are not present in the normal map. See http_headers::content_length()
.
http_headers::content_length()
returns zero in my test app. From I what see in the source code it just does a lookup in the header map.
You're right. I'll take a look into this.
When sending a GET request to a server that responds with gzip encoding in a UWP on Windows 10 the content-length and content-encoding headers are not included in the http_response::headers(). Both of the headers are visible in Wireshark so they must be getting removed somewhere along the line.
Without the content-length of the response there is no way to show download progress.
Test code: