Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong content-length when proxy binary file #4

Open
cades opened this issue Jul 6, 2015 · 1 comment
Open

wrong content-length when proxy binary file #4

cades opened this issue Jul 6, 2015 · 1 comment

Comments

@cades
Copy link

cades commented Jul 6, 2015

as title, when I trying proxy binary file (which is served by koa-send), I found the content-length is wrong and file is corrupted.

Could anyone give me some suggestion to troubleshooting?

@lzaugg
Copy link

lzaugg commented Sep 17, 2015

try to set encoding to "null" explicitly in proxy(path, encoding) and the underlying request module should handle the response as Buffer instead of a toString() (see documentation of "encoding" https://github.com/request/request).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants