Skip to content

Commit 25f7af8

Browse files
committed
Deal with new BadStatusLine content in Python 2.7.
1 parent f94de8e commit 25f7af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

couchdb/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def _try_request():
231231
# line saying, "Presumably, the server closed the connection
232232
# before sending a valid response."
233233
# Raise as ECONNRESET to simplify retry logic.
234-
if e.line == '':
234+
if e.line == '' or e.line == "''":
235235
raise socket.error(errno.ECONNRESET)
236236
else:
237237
raise

0 commit comments

Comments
 (0)