summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/web/cnl_app.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/web/cnl_app.py b/module/web/cnl_app.py
index 13ddab1ef..d8f7c1180 100644
--- a/module/web/cnl_app.py
+++ b/module/web/cnl_app.py
@@ -114,9 +114,12 @@ def addcrypted2():
else:
return "success\r\n"
+@route("/flashgot_pyload")
+@route("/flashgot_pyload", method="POST")
+@route("/flashgot")
@route("/flashgot", method="POST")
@local_check
-def flashgot(request):
+def flashgot():
if request.environ['HTTP_REFERER'] != "http://localhost:9666/flashgot" and request.environ['HTTP_REFERER'] != "http://127.0.0.1:9666/flashgot":
return HTTPError()