httplib - minor update to check empty response
diff --git a/Lib/http/client.py b/Lib/http/client.py
index 6828f14..d226f63 100644
--- a/Lib/http/client.py
+++ b/Lib/http/client.py
@@ -563,7 +563,7 @@
# a vanishingly small number of sites EOF without
# sending the trailer
break
- if line == b"\r\n":
+ if line in (b'\r\n', b'\n', b''):
break
# we read everything; close the "file"
@@ -718,7 +718,7 @@
if not line:
# for sites which EOF without sending a trailer
break
- if line == b'\r\n':
+ if line in (b'\r\n', b'\n', b''):
break
def connect(self):