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

[3.2] use consistent HTTP server header on both success and failure responses #542

Closed
wants to merge 1 commit into from

Conversation

spoonincode
Copy link
Member

#378 sets a more specific HTTP Host header for replies. Well, apparently it only did on successful replies because the code overwrites that header on error replies, which I missed. There appears to be no reason to set these header fields again here -- they're set when the res_ object is created.

Also, forcing the connection close on an error reply here seems overkill. There is no reason that needs to happen: an error response doesn't prevent a new request from being sent on the same connection. Not touching that in 3.2 though.

@spoonincode
Copy link
Member Author

will need to be reworked going forward

@spoonincode spoonincode closed this Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant