diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2008-07-07 05:09:12 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2008-07-07 05:09:12 (GMT) |
commit | c4691ec0bf3e04dcd27ad3ab0350b5930b7d877d (patch) | |
tree | 503cf29f13549f6e7ad154251f25814c0149ddf1 /Lib/httplib.py | |
parent | 04222925f12595e60bbc29ba1d5a7016ba886957 (diff) | |
download | cpython-c4691ec0bf3e04dcd27ad3ab0350b5930b7d877d.zip cpython-c4691ec0bf3e04dcd27ad3ab0350b5930b7d877d.tar.gz cpython-c4691ec0bf3e04dcd27ad3ab0350b5930b7d877d.tar.bz2 |
- Issue #3094: httplib.HTTPSConnection Host: headers no longer include the
redundant ":443" port number designation when the connection is using the
default https port (443).
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r-- | Lib/httplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py index 1bca5da..81020b7 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -813,7 +813,7 @@ class HTTPConnection: host_enc = self.host.encode("ascii") except UnicodeEncodeError: host_enc = self.host.encode("idna") - if self.port == HTTP_PORT: + if self.port == self.default_port: self.putheader('Host', host_enc) else: self.putheader('Host', "%s:%s" % (host_enc, self.port)) |