summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-13 08:02:12 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-13 08:02:12 +0200
commit57e450ef209f2a865dd579913e114534f0bb8851 (patch)
treedb19b78eda368431d248558d8edb2458a4b75da4
parentMerge branch 'pr/n3_ardi69' into 0.4.10 (diff)
downloadpyload-57e450ef209f2a865dd579913e114534f0bb8851.tar.xz
Fix https://github.com/pyload/pyload/issues/1349
-rw-r--r--pyload/webui/app/api.py4
1 files changed, 2 insertions, 2 deletions
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/<func><args:re:[a-zA-Z0-9\-_/\"\'\[\]%{}]*>')
-@route('/api/<func><args:re:[a-zA-Z0-9\-_/\"\'\[\]%{}]*>', method='POST')
+@route('/api/<func><args:re:[a-zA-Z0-9\-_/\"\'\[\]%{},]*>')
+@route('/api/<func><args:re:[a-zA-Z0-9\-_/\"\'\[\]%{},]*>', method='POST')
def call_api(func, args=""):
response.headers.replace("Content-type", "application/json")
response.headers.append("Cache-Control", "no-cache, must-revalidate")