mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
In the HTTP reply header, be more accepting in the HTTP version.
This commit is contained in:
parent
caf783793d
commit
8b82baa398
1 changed files with 2 additions and 2 deletions
|
@ -36,10 +36,10 @@ import regsub
|
|||
import mimetools
|
||||
|
||||
HTTP_VERSION = 'HTTP/1.0'
|
||||
HTTP_VERSIONS_ACCEPTED = 'HTTP/1\.[0-9.]+'
|
||||
HTTP_PORT = 80
|
||||
|
||||
replypat = regsub.gsub('\\.', '\\\\.', HTTP_VERSION) + \
|
||||
'[ \t]+\([0-9][0-9][0-9]\)\(.*\)'
|
||||
replypat = HTTP_VERSIONS_ACCEPTED + '[ \t]+\([0-9][0-9][0-9]\)\(.*\)'
|
||||
replyprog = regex.compile(replypat)
|
||||
|
||||
class HTTP:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue