An option to change static files headers?
opened this issue · comments
Deleted user commented
Muffin serves the files with the header "content-disposition: attachment; filename="..."
and that makes the browser download the files instead of displaying them.
Kirill Klenov commented
@F4at Hello, thank you for the feedback. I've changed the ResponseFile
default behaviour, please check the updated docs: https://klen.github.io/muffin/api.html#responsefile-response.
TLDR: For now by default, the content-disposition
header wouldn't be added.
Kirill Klenov commented
Muffin==0.81.0
is available on pypi