[Python-checkins] r64771 - in python/trunk: Lib/httplib.py Misc/NEWS

gregory.p.smith python-checkins at python.org
Mon Jul 7 07:09:12 CEST 2008


Author: gregory.p.smith
Date: Mon Jul 7 07:09:12 2008
New Revision: 64771
Log:
- 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).
Modified:
 python/trunk/Lib/httplib.py
 python/trunk/Misc/NEWS
Modified: python/trunk/Lib/httplib.py
==============================================================================
--- python/trunk/Lib/httplib.py	(original)
+++ python/trunk/Lib/httplib.py	Mon Jul 7 07:09:12 2008
@@ -813,7 +813,7 @@
 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))
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Mon Jul 7 07:09:12 2008
@@ -72,6 +72,10 @@
 properly when raising an exception due to the bz2file being closed.
 Prevents a deadlock.
 
+- 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).
+
 Build
 -----
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /