Przeglądaj źródła

Fix X-tag for curl

Oz N Tiram 9 lat temu
rodzic
commit
6f6f193d88
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      frank/frank.py

+ 1 - 1
frank/frank.py

@@ -246,7 +246,7 @@ def start():
     """
     ans = hmac.new(app.config['POST_KEY'], request.data,
                    hashlib.sha1).hexdigest()
-    secret = request.headers['X-Hub-Signature'].split('=')[-1]
+    secret = request.headers['X-Secret'].split('=')[-1]
     if ans != secret:
         return abort(500)
     request_as_json = request.get_json()