summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/WrzucTo.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/hoster/WrzucTo.py')
-rw-r--r--pyload/plugin/hoster/WrzucTo.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyload/plugin/hoster/WrzucTo.py b/pyload/plugin/hoster/WrzucTo.py
index 5d17e3d4b..34306b75f 100644
--- a/pyload/plugin/hoster/WrzucTo.py
+++ b/pyload/plugin/hoster/WrzucTo.py
@@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-
+import pycurl
import re
-from pycurl import HTTPHEADER
-
from pyload.plugin.internal.SimpleHoster import SimpleHoster
@@ -35,7 +34,7 @@ class WrzucTo(SimpleHoster):
if len(data) != 2:
self.error(_("No file ID"))
- self.req.http.c.setopt(HTTPHEADER, ["X-Requested-With: XMLHttpRequest"])
+ self.req.http.c.setopt(pycurl.HTTPHEADER, ["X-Requested-With: XMLHttpRequest"])
self.req.http.lastURL = pyfile.url
self.load("http://www.wrzuc.to/ajax/server/prepair", post={"md5": data['md5']})