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

Make it easier to return 204 status without content-type header #165

Open
rsyring opened this issue Sep 16, 2020 · 0 comments
Open

Make it easier to return 204 status without content-type header #165

rsyring opened this issue Sep 16, 2020 · 0 comments

Comments

@rsyring
Copy link
Member

rsyring commented Sep 16, 2020

Werkzeug's defaults make it hard to return a 204 status code without returning a response with a content-type header. Webtest doesn't like that:

  /home/rsyring/tmp/virtualenvs/miller/lib/python3.8/site-packages/webtest/lint.py:538: WSGIWarning: Content-Type header found in a 204 response, which not return content.
    warnings.warn(("Content-Type header found in a %s response, "

It would be nice if we could from a view return:

return None, 204

And have that do the right thing.

@rsyring rsyring transferred this issue from level12/keg-app-cookiecutter Jun 9, 2021
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