summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-03-25 12:24:58 (GMT)
committerMichael W. Hudson <mwh@python.net>2002-03-25 12:24:58 (GMT)
commitd360a0058e141e3a642fcee2b233623e7a309fff (patch)
tree4e5a3fe1b065614e708ee9e42725096f15734d86
parent8ae56530fd7dccaf1992024f8e5185737239e42e (diff)
downloadcpython-d360a0058e141e3a642fcee2b233623e7a309fff.zip
cpython-d360a0058e141e3a642fcee2b233623e7a309fff.tar.gz
cpython-d360a0058e141e3a642fcee2b233623e7a309fff.tar.bz2
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.
-rw-r--r--Lib/httplib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index b7df006..d244351 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -646,6 +646,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)