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

web: do not send content on HTTPError(204) #3361

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pawciobiel
Copy link

@pawciobiel pawciobiel commented Feb 16, 2024

Change write_error() to not send body if
status code in (204, 304) or (100 <= status code < 200),
refactored into RequestHandler._should_not_send_content(status_code)
Change get_arguments() to raise ValueError if strip is not boolean, as opposed to AssertionError.

Fixes #3360

Change `write_error()` to not send body if
 status code in (204, 304) or (100 <= status code < 200)
 - refactored into `RequestHandler._should_not_send_content(status_code)`
Change `get_arguments()` to raise `ValueError` if `strip` is not boolean
 - as opposed to `AssertionError`.

Fixes tornadoweb#3360
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

Successfully merging this pull request may close these issues.

Send 204 as HTTPError
1 participant