We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 325ab73 commit 7ab7b7aCopy full SHA for 7ab7b7a
lib/slack.ml
@@ -339,7 +339,7 @@ let validate_signature ?(version = "v0") ?signing_key ~headers body =
339
match List.assoc_opt "x-slack-signature" headers with
340
| None -> Error "unable to find header X-Slack-Signature"
341
| Some signature ->
342
- match List.assoc_opt "x-slack-signature" headers with
+ match List.assoc_opt "x-slack-request-timestamp" headers with
343
| None -> Error "unable to find header X-Slack-Request-Timestamp"
344
| Some timestamp ->
345
let basestring = Printf.sprintf "%s:%s:%s" version timestamp body in
0 commit comments