klen / muffin

Muffin is a fast, simple and asyncronous web-framework for Python 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An option to change static files headers?

opened this issue · comments

Muffin serves the files with the header "content-disposition: attachment; filename="..." and that makes the browser download the files instead of displaying them.

@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.

Muffin==0.81.0 is available on pypi