diff Lib/httplib.py @ 22526:0c1912f9d1ce 2.2

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.
author Michael W. Hudson <mwh@python.net>
date Mon, 25 Mar 2002 12:24:58 +0000
parents 9968d8dddd53
children 37435f9f04d6
line wrap: on
line diff
--- a/Lib/httplib.py	Mon Mar 25 12:24:50 2002 +0000
+++ b/Lib/httplib.py	Mon Mar 25 12:24:58 2002 +0000
@@ -646,6 +646,9 @@
     def send(self, stuff, flags = 0):
         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)