Skip to content

Commit

Permalink
Search the correct key in header for slack req ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tysg committed Mar 29, 2024
1 parent 325ab73 commit 7ab7b7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/slack.ml
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ let validate_signature ?(version = "v0") ?signing_key ~headers body =
match List.assoc_opt "x-slack-signature" headers with
| None -> Error "unable to find header X-Slack-Signature"
| Some signature ->
match List.assoc_opt "x-slack-signature" headers with
match List.assoc_opt "x-slack-request-timestamp" headers with
| None -> Error "unable to find header X-Slack-Request-Timestamp"
| Some timestamp ->
let basestring = Printf.sprintf "%s:%s:%s" version timestamp body in
Expand Down

0 comments on commit 7ab7b7a

Please sign in to comment.