aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/httplib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/httplib.py')
-rw-r--r--Lib/httplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index 3aeb643b641..ca431ab4cb2 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -82,7 +82,7 @@ class HTTP:
self.send('\r\n')
def getreply(self):
- self.file = self.sock.makefile('r')
+ self.file = self.sock.makefile('rb')
self.sock = None
line = self.file.readline()
if self.debuglevel > 0: print 'reply:', `line`