summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2002-03-18 22:51:48 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2002-03-18 22:51:48 (GMT)
commita3c0b9334e579e925692903a9a52775677e9771a (patch)
treebf0d0f73fdfed1fe086e994d43fcf52718bc4db9 /Lib
parent56a42356b7c1e531c30ad5e9a22bd3626e5ddda0 (diff)
downloadcpython-a3c0b9334e579e925692903a9a52775677e9771a.zip
cpython-a3c0b9334e579e925692903a9a52775677e9771a.tar.gz
cpython-a3c0b9334e579e925692903a9a52775677e9771a.tar.bz2
[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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/httplib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index d7254ff..4bad463 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)