[New-bugs-announce] [issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

Stéphane Wirtel report at bugs.python.org
Mon Apr 14 22:43:52 CEST 2014


New submission from Stéphane Wirtel:

Hi,

With this issue, I would like to ask you to use the last version of the HTTP protocol in the BaseHTTPRequestHandler for Python 3.5.
Because this one uses the version 1.0 of the protocol for the backward-compatibility.

https://docs.python.org/3/library/http.server.html?highlight=protocol_version#http.server.BaseHTTPRequestHandler.protocol_version

When we develop an web app with Flask/Werkzeug or an other tool, the default version of 
the protocol is "HTTP/1.0". If we use Gunicorn, the protocol version is HTTP/1.1 and not 1.0, but this one can support the old version.

So, I propose to change the default version to the HTTP/1.1. It seems that the code of the server can handle this version without any problem.

HTTP 1.0 - http://www.ietf.org/rfc/rfc1945.txt - 1996
HTTP 1.1 - http://www.ietf.org/rfc/rfc2616.txt - 1999

In 2014, I think we can move to HTTP 1.1 by default.

Regards,

Stephane

----------
components: Library (Lib)
messages: 216206
nosy: matrixise
priority: normal
severity: normal
status: open
title: BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21224>
_______________________________________


More information about the New-bugs-announce mailing list