express icon indicating copy to clipboard operation
express copied to clipboard

Download Issues?

Open pyrostrex opened this issue 15 years ago • 9 comments

Content-Length header was not parsed?. Somehow, my browser doesn't show the total file size of the file downloaded.

pyrostrex avatar Jan 18 '11 03:01 pyrostrex

using what method(s) ?

tj avatar Jan 18 '11 03:01 tj

response.download('filename');

pyrostrex avatar Jan 18 '11 06:01 pyrostrex

hmm, I just tried this with a large movie last night and both download / sendfile are fine. How about the node --version and express --version ? I need more info

tj avatar Jan 18 '11 17:01 tj

My browser is chrome mac. node v0.3.4-pre. express 2.0.0-pre

pyrostrex avatar Jan 19 '11 04:01 pyrostrex

strange.. I did try with 0.3.4 and master, with chrome on osx, worked fine for me :s

tj avatar Jan 19 '11 04:01 tj

Hmm... I tried using HTTP Debugger (Windows) and saw that there is no Content-Length sent.

pyrostrex avatar Jan 19 '11 05:01 pyrostrex

with transfer-encoding chunked you should not need the length, it should still work

tj avatar Jan 19 '11 05:01 tj

Yeah, the download works. But with unknown size. I don't know why. chrome os x

pyrostrex avatar Jan 19 '11 10:01 pyrostrex

Added Content-Length to res.sendfile(). Closed by 28953034219643d951e214019342edde7fe38737

tj avatar Jan 19 '11 17:01 tj