From 57e450ef209f2a865dd579913e114534f0bb8851 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 13 Apr 2015 08:02:12 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1349 --- pyload/webui/app/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyload') diff --git a/pyload/webui/app/api.py b/pyload/webui/app/api.py index ceee50c8a..1f335f82e 100644 --- a/pyload/webui/app/api.py +++ b/pyload/webui/app/api.py @@ -24,8 +24,8 @@ class TBaseEncoder(json.JSONEncoder): # accepting positional arguments, as well as kwargs via post and get -@route('/api/') -@route('/api/', method='POST') +@route('/api/') +@route('/api/', method='POST') def call_api(func, args=""): response.headers.replace("Content-type", "application/json") response.headers.append("Cache-Control", "no-cache, must-revalidate") -- cgit v1.2.3