No Content-Length field in HTTP response header (Google engine)

The Content-Length header is missing when I try to download the static files rar, exe, msi, although the answer for the images contains Content-Length, but if I change the rar extension to jpg, not ,

How to solve this?

+6
source share
2 answers

What headlines do you see? Perhaps it is served using Transfer-Encoding: Chunked, which is a perfectly legitimate way to send responses over HTTP.

Also, how do you maintain the file - using static files, your code, or blobstore?

+6
source

I tried copying http://googleappengine.googlecode.com/files/GoogleAppEngine_1.3.4.msi as a static file and ran into the same problem - the GAE response did not include the Content-Length header.

Workaround: If the Content-Length header is critical, then consider hosting your static msi file types (etc.) on a file hosting site (such as Dropbox .

Change This is still the intended behavior. Nick indicates that the files are being transferred with the Transfer-Encoding: Chunked .

0
source

All Articles