Commit e715915a by rfkelly0

DAVFS: ensure redirect responses are properly closed

parent e94fa39d
......@@ -190,7 +190,7 @@ class DAVFS(FS):
resp = self._raw_request(url,method,body,headers)
# Loop to retry for redirects and authentication responses.
while resp.status in (301,302,401,403):
#resp.close()
resp.close()
if resp.status in (301,302,):
visited.append(url)
url = resp.getheader("Location",None)
......
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