]> granicus.if.org Git - python/commitdiff
[Bug #531616] Make HTTPS work again by adding a sendall method to the
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 18 Mar 2002 22:51:48 +0000 (22:51 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 18 Mar 2002 22:51:48 +0000 (22:51 +0000)
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.

Lib/httplib.py

index d7254ffd0c536ce250ffc46a0345512af8651756..4bad4638a44ac9c4a636175e2658c1ff1e0b4371 100644 (file)
@@ -645,6 +645,9 @@ class FakeSocket:
     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)