diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-12 13:20:47 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-12 13:20:47 +0200 |
commit | 7169fbae17d51caae69a79bf1b1e4f2f25deed5d (patch) | |
tree | 93c4997f5594f1de9778fbc92d019331c3da94e5 /module | |
parent | erniebs fixes, ul lifetime fix (diff) | |
download | pyload-7169fbae17d51caae69a79bf1b1e4f2f25deed5d.tar.xz |
fixes just_header
Diffstat (limited to 'module')
-rw-r--r-- | module/network/HTTPRequest.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py index bf23bb202..f90048f4d 100644 --- a/module/network/HTTPRequest.py +++ b/module/network/HTTPRequest.py @@ -166,11 +166,13 @@ class HTTPRequest(): if just_header: self.c.setopt(pycurl.FOLLOWLOCATION, 0) - self.c.setopt(pycurl.HEADER, 1) self.c.setopt(pycurl.NOBODY, 1) self.c.perform() rep = self.header - + + self.c.setopt(pycurl.FOLLOWLOCATION, 1) + self.c.setopt(pycurl.NOBODY, 0) + else: self.c.perform() rep = self.getResponse() |