diff options
author | Guido van Rossum <guido@python.org> | 1996-12-10 15:58:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-12-10 15:58:22 (GMT) |
commit | 8b82baa398c910d16479d6394ccd0bc7aa385196 (patch) | |
tree | 10d81690e7f172156fee1c591f24c50fb53a931c | |
parent | caf783793db32b2766b3e26f1ca92540c89911d0 (diff) | |
download | cpython-8b82baa398c910d16479d6394ccd0bc7aa385196.zip cpython-8b82baa398c910d16479d6394ccd0bc7aa385196.tar.gz cpython-8b82baa398c910d16479d6394ccd0bc7aa385196.tar.bz2 |
In the HTTP reply header, be more accepting in the HTTP version.
-rw-r--r-- | Lib/httplib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py index ca431ab..68553c5 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -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: |