[Python-checkins] python/dist/src/Lib httplib.py,1.79.8.1,1.79.8.2

aleax at users.sourceforge.net aleax at users.sourceforge.net
Sun Nov 2 11:51:41 EST 2003


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv4521

Modified Files:
      Tag: release23-maint
	httplib.py 
Log Message:
fixed obvious bug in _send_header as per SF bug #831271



Index: httplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/httplib.py,v
retrieving revision 1.79.8.1
retrieving revision 1.79.8.2
diff -C2 -d -r1.79.8.1 -r1.79.8.2
*** httplib.py	27 Oct 2003 14:07:42 -0000	1.79.8.1
--- httplib.py	2 Nov 2003 16:51:38 -0000	1.79.8.2
***************
*** 727,733 ****
          # If headers already contains a host header, then define the
          # optional skip_host argument to putrequest().  The check is
!         # harder because field names are case insensitive.
!         if 'Host' in (headers
!             or [k for k in headers.iterkeys() if k.lower() == "host"]):
              self.putrequest(method, url, skip_host=1)
          else:
--- 727,732 ----
          # If headers already contains a host header, then define the
          # optional skip_host argument to putrequest().  The check is
!         # more delicate because field names are case insensitive.
!         if 'host' in [k.lower() for k in headers]:
              self.putrequest(method, url, skip_host=1)
          else:





More information about the Python-checkins mailing list