apache / incubator-pagespeed-mod

Apache module for rewriting web pages to reduce latency and bandwidth.
http://modpagespeed.com
Apache License 2.0
696 stars 158 forks source link

Fetches with remaining data to be read don't fail #1046

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Fetches using the serf fetcher (tested using CacheUrlAsyncFetcher) report 
success when the content-length is longer than the length of the received data.

Curl via the command line gives the helpful message 
curl: (18) transfer closed with 950 bytes remaining to read

Our fetches should fail in this situation as well.

Original issue reported on code.google.com by jcrowell@google.com on 4 Feb 2015 at 6:29

GoogleCodeExporter commented 9 years ago
This involves dealing with chunked encoding as well, which content-length will 
not equal transferred size every time.

bumping to low priority.

Original comment by jcrowell@google.com on 4 Feb 2015 at 9:42