-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
bpo-46285: Add command-line option -p/--protocol to module http.server #30999
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. |
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
/--protocol
to modulehttp.server
which 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