Commit 382f4782 authored by nanahira's avatar nanahira

fix

parent 66dd734e
Pipeline #12669 passed with stages
in 3 minutes and 3 seconds
......@@ -15,7 +15,7 @@ def makeResponse(statusCode, message, data):
@app.route("/<methodname>", methods=['POST'])
def encrypt(methodname):
if accessToken and request.headers.get("Authorization") != accessToken:
if accessToken and request.headers.get("Authorization") != "Bearer " + accessToken:
return makeResponse(403, "Access denied", None)
if methodname not in allow_list:
return makeResponse(404, "Method not found", None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment