From: Andrew M. Kuchling Date: Mon, 18 Mar 2002 22:51:48 +0000 (+0000) Subject: [Bug #531616] Make HTTPS work again by adding a sendall method to the X-Git-Tag: v2.3c1~6438 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3c0b9334e579e925692903a9a52775677e9771a;p=python [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. --- diff --git a/Lib/httplib.py b/Lib/httplib.py index d7254ffd0c..4bad4638a4 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -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)