[Python-checkins] CVS: python/dist/src/Lib httplib.py,1.42.10.3,1.42.10.4

Michael Hudson mwh@users.sourceforge.net
Mon, 25 Mar 2002 04:25:00 -0800


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

Modified Files:
      Tag: release22-maint
	httplib.py 
Log Message:
backport akuchling's checkin of
    revision 1.47 of httplib.py

[Bug #531616] Make HTTPS work again by adding a sendall method to the
FakeSocket class.  Without it, the sendall() call got the method on
the underlying socket object, and that messed up SSL.

Does httplib use other methods of sockets that FakeSocket doesn't support?
Someone should take a look...  (I'll try to give it a once-over.)

2.2.1 bugfix candidate.


Index: httplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/httplib.py,v
retrieving revision 1.42.10.3
retrieving revision 1.42.10.4
diff -C2 -d -r1.42.10.3 -r1.42.10.4
*** httplib.py	11 Mar 2002 10:19:16 -0000	1.42.10.3
--- httplib.py	25 Mar 2002 12:24:58 -0000	1.42.10.4
***************
*** 647,650 ****
--- 647,653 ----
          return self.__ssl.write(stuff)
  
+     def sendall(self, stuff, flags = 0):
+         return self.__ssl.write(stuff)
+ 
      def recv(self, len = 1024, flags = 0):
          return self.__ssl.read(len)