summaryrefslogtreecommitdiffstats
path: root/pyload/remote/ClickNLoadBackend.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/remote/ClickNLoadBackend.py')
-rw-r--r--pyload/remote/ClickNLoadBackend.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/pyload/remote/ClickNLoadBackend.py b/pyload/remote/ClickNLoadBackend.py
index 5c08986a7..2d3e29dbc 100644
--- a/pyload/remote/ClickNLoadBackend.py
+++ b/pyload/remote/ClickNLoadBackend.py
@@ -62,20 +62,20 @@ class CNLHandler(BaseHTTPRequestHandler):
def do_GET(self):
path = self.path.strip("/").lower()
- #self.wfile.write(path+"\n")
+ # self.wfile.write(path+"\n")
- self.map = [ (r"add$", self.add),
- (r"addcrypted$", self.addcrypted),
- (r"addcrypted2$", self.addcrypted2),
- (r"flashgot", self.flashgot),
- (r"crossdomain\.xml", self.crossdomain),
- (r"checkSupportForUrl", self.checksupport),
- (r"jdcheck.js", self.jdcheck),
- (r"", self.flash) ]
+ self.map = [(r"add$", self.add),
+ (r"addcrypted$", self.addcrypted),
+ (r"addcrypted2$", self.addcrypted2),
+ (r"flashgot", self.flashgot),
+ (r"crossdomain\.xml", self.crossdomain),
+ (r"checkSupportForUrl", self.checksupport),
+ (r"jdcheck.js", self.jdcheck),
+ (r"", self.flash)]
func = None
for r, f in self.map:
- if re.match(r"(flash(got)?/?)?"+r, path):
+ if re.match(r"(flash(got)?/?)?" + r, path):
func = f
break
@@ -94,11 +94,11 @@ class CNLHandler(BaseHTTPRequestHandler):
def do_POST(self):
form = FieldStorage(
- fp=self.rfile,
- headers=self.headers,
- environ={'REQUEST_METHOD':'POST',
- 'CONTENT_TYPE':self.headers['Content-Type'],
- })
+ fp=self.rfile,
+ headers=self.headers,
+ environ={'REQUEST_METHOD': 'POST',
+ 'CONTENT_TYPE': self.headers['Content-Type'],
+ })
self.post = {}
for name in form.keys():