Commit f962aaec authored by Amos Latteier's avatar Amos Latteier

Worked around a problem with detecting a closed HTTP connection when the...

Worked around a problem with detecting a closed HTTP connection when the headers are set in literal mode. Thanks to Martijn Pieters for pointing out that this happens in some WebDAV responses.
parent 9905f8b0
......@@ -252,7 +252,8 @@ class ChannelPipe:
if response.headers.get('bobo-exception-type', '') == \
'exceptions.SystemExit':
self._shutdown=1
if response.headers.get('connection','')=='close':
if response.headers.get('connection','') == 'close' or \
response.headers.get('Connection','') == 'close':
self._close=1
self._request.reply_code=response.status
......
......@@ -252,7 +252,8 @@ class ChannelPipe:
if response.headers.get('bobo-exception-type', '') == \
'exceptions.SystemExit':
self._shutdown=1
if response.headers.get('connection','')=='close':
if response.headers.get('connection','') == 'close' or \
response.headers.get('Connection','') == 'close':
self._close=1
self._request.reply_code=response.status
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment