summaryrefslogtreecommitdiff
path: root/fs/contrib
diff options
context:
space:
mode:
authorrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2011-03-29 04:29:11 +0000
committerrfkelly0 <rfkelly0@67cdc799-7952-0410-af00-57a81ceafa0f>2011-03-29 04:29:11 +0000
commite715915af8e5163c94ec763a1fa9fa6145c0f27c (patch)
tree88b5d1950c83199d9cf1b3354f7ebbabc969d165 /fs/contrib
parente94fa39dbbffa0e77b0022e128158459d0038065 (diff)
downloadpyfilesystem-git-e715915af8e5163c94ec763a1fa9fa6145c0f27c.tar.gz
DAVFS: ensure redirect responses are properly closed
Diffstat (limited to 'fs/contrib')
-rw-r--r--fs/contrib/davfs/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/contrib/davfs/__init__.py b/fs/contrib/davfs/__init__.py
index fe89ed9..bc1d255 100644
--- a/fs/contrib/davfs/__init__.py
+++ b/fs/contrib/davfs/__init__.py
@@ -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)