From 7169fbae17d51caae69a79bf1b1e4f2f25deed5d Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 12 Jun 2011 13:20:47 +0200 Subject: fixes just_header --- module/network/HTTPRequest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'module/network/HTTPRequest.py') 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() -- cgit v1.2.3