Skip to content

Commit

Permalink
use correct header
Browse files Browse the repository at this point in the history
  • Loading branch information
robkooper committed May 1, 2024
1 parent 194fb9c commit ada8e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdrhook/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def hook():
# check the signature
if request.headers.get("x-cdr-signature-256"):
validate_request(request.data, request.headers.get("x-cdr-signature-256"), config["callback_secret"])
elif not request.headers.get("x-cdr-signature-256") == config["callback_secret"]:
elif not request.headers.get("x-ncsa-secret") == config["callback_secret"]:
abort(403, "Request signatures didn't match!")

send_message(request.get_json(), f'{config["prefix"]}cdrhook')
Expand Down

0 comments on commit ada8e01

Please sign in to comment.