summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/XFSHoster.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-08 12:24:34 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-08 12:24:34 +0200
commitc59aa4057608cd47084c66e41f363b5f981f2816 (patch)
tree73d787e55826537710ab526f583c46b0623c6c85 /module/plugins/internal/XFSHoster.py
parentSpare improvements (diff)
downloadpyload-c59aa4057608cd47084c66e41f363b5f981f2816.tar.xz
Fixpack (5)
Diffstat (limited to 'module/plugins/internal/XFSHoster.py')
-rw-r--r--module/plugins/internal/XFSHoster.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/module/plugins/internal/XFSHoster.py b/module/plugins/internal/XFSHoster.py
index 2e9cbceb2..80ef9a977 100644
--- a/module/plugins/internal/XFSHoster.py
+++ b/module/plugins/internal/XFSHoster.py
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
-import pycurl
import random
import re
@@ -113,11 +112,7 @@ class XFSHoster(SimpleHoster):
data = self.get_post_parameters()
- self.req.http.c.setopt(pycurl.FOLLOWLOCATION, 0)
-
- self.html = self.load(pyfile.url, post=data)
-
- self.req.http.c.setopt(pycurl.FOLLOWLOCATION, 1)
+ self.html = self.load(pyfile.url, post=data, redirect=False)
m = re.search(r'Location\s*:\s*(.+)', self.req.http.header, re.I)
if m and not "op=" in m.group(1):