Mercurial > cpython-lru_cache-weakref
diff Lib/httplib.py @ 4658:0dddf49ea416 legacy-trunk
In the HTTP reply header, be more accepting in the HTTP version.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 10 Dec 1996 15:58:22 +0000 |
| parents | 409a89c5f66d |
| children | 7a0880f8b8ec |
line wrap: on
line diff
--- a/Lib/httplib.py Tue Dec 10 15:41:19 1996 +0000 +++ b/Lib/httplib.py Tue Dec 10 15:58:22 1996 +0000 @@ -36,10 +36,10 @@ 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:
