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

override response headers #10

Open
max-mapper opened this issue Dec 10, 2011 · 0 comments
Open

override response headers #10

max-mapper opened this issue Dec 10, 2011 · 0 comments

Comments

@max-mapper
Copy link
Contributor

yo doggy,

i would like to do something like this

resp.setHeader('Content-Disposition', 'inline')
resp.setHeader('Content-Transfer-Encoding', 'binary')
resp.setHeader('Content-Type', 'text/plain')
filed('hello.txt').pipe(resp)

unfortunatly the content-type gets overridden to application/octet by the mimetype library and im not seeing a way to override that default from the filed api

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

1 participant