mikeal/filed — Issue #10: override response headers
Author: maxogden
Created: 2011-12-10 23:43:58+00:00
State: open

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