-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
bpo-46285: Add command-line option -p/--protocol to module http.server #30999
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
Conversation
|
Thanks for the the PR! Let’s merge this one after the bug fix to the same module. |
5323621 to
f5e0dc4
Compare
|
Please avoid rebases and force-pushes for CPython, github does not have a good experience for reviewers. |
orsenthil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I had a brief hesitancy for exposing this protocol version via flag as the support is not comprehensive. I am pretty sure we are missing many features.
But given that class supports .protocol_version as a attribute, exposing it via a command line flag is alright.
|
Thanks @merwok, @JelleZijlstra, and @orsenthil for the review! |
This PR will add command-line option
-p/--protocolto modulehttp.serverwhich specifies the HTTP version to which the server is conformant (HTTP/1.1 servers can now be run from the command-line interface of modulehttp.server):https://bugs.python.org/issue46285