Skip to content

Commit

Permalink
In the HTTP reply header, be more accepting in the HTTP version.
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Dec 10, 1996
1 parent caf7837 commit 8b82baa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/httplib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8b82baa

Please sign in to comment.