-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Simple enhancement to BaseHTTPRequestHandler #70773
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
Comments
This patch propose several simple enhancement to BaseHTTPRequestHandler. It removes some redundant code and add handler for too many headers. |
Thanks for the patch, it looks good in general. I left some comments and suggestions. |
Thanks for your review. I have made some changes according to it. Status code 431 is returned when the header line is too long or there are too many headers. And I think the short message is OK and we can provide the exception message in the content message. As for the style, I don't know why I made that change. Quite sorry for make the noise. |
Ping. |
I propose to commit the “Too many headers” handler as a bug fix, and the other changes to only 3.6. Currently when more than 100 header fields are sent, the connection is killed and the server logs an unhandled exception. |
New changeset f5247195238f by Martin Panter in branch '3.5': New changeset e8edddb4f74b by Martin Panter in branch 'default': New changeset 1b696c744559 by Martin Panter in branch 'default': |
I didn’t touch 2.7 because that doesn’t have the same header parsing code as Python 3. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: