diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-22 22:21:23 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-22 22:21:23 +0100 |
commit | 4dc4268919d29de81679c99173b39529d8e41f44 (patch) | |
tree | acbdf01d0390053bd4c70d075a59ea74f421755c /module/network/HTTPRequest.py | |
parent | fixes for chunked download (diff) | |
download | pyload-4dc4268919d29de81679c99173b39529d8e41f44.tar.xz |
added missing curl.close
Diffstat (limited to 'module/network/HTTPRequest.py')
-rw-r--r-- | module/network/HTTPRequest.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py index e107831cd..fa34ad5b3 100644 --- a/module/network/HTTPRequest.py +++ b/module/network/HTTPRequest.py @@ -163,7 +163,8 @@ class HTTPRequest(): """ raise an exceptions on bad headers """ code = int(self.c.getinfo(pycurl.RESPONSE_CODE)) if code in range(400,404) or code in range(405,418) or code in range(500,506): - raise BadHeader(code) #404 will NOT raise an exception + #404 will NOT raise an exception + raise BadHeader(code) return code def getResponse(self): @@ -195,6 +196,7 @@ class HTTPRequest(): if hasattr(self, "cj"): del self.cj if hasattr(self, "c"): + self.c.close() del self.c |