summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-12-10 15:58:22 (GMT)
committerGuido van Rossum <guido@python.org>1996-12-10 15:58:22 (GMT)
commit8b82baa398c910d16479d6394ccd0bc7aa385196 (patch)
tree10d81690e7f172156fee1c591f24c50fb53a931c /Lib
parentcaf783793db32b2766b3e26f1ca92540c89911d0 (diff)
downloadcpython-8b82baa398c910d16479d6394ccd0bc7aa385196.zip
cpython-8b82baa398c910d16479d6394ccd0bc7aa385196.tar.gz
cpython-8b82baa398c910d16479d6394ccd0bc7aa385196.tar.bz2
In the HTTP reply header, be more accepting in the HTTP version.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/httplib.py4
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: