Skip to content

Commit 7ab7b7a

Browse files
committed
Search the correct key in header for slack req ts
1 parent 325ab73 commit 7ab7b7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/slack.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ let validate_signature ?(version = "v0") ?signing_key ~headers body =
339339
match List.assoc_opt "x-slack-signature" headers with
340340
| None -> Error "unable to find header X-Slack-Signature"
341341
| Some signature ->
342-
match List.assoc_opt "x-slack-signature" headers with
342+
match List.assoc_opt "x-slack-request-timestamp" headers with
343343
| None -> Error "unable to find header X-Slack-Request-Timestamp"
344344
| Some timestamp ->
345345
let basestring = Printf.sprintf "%s:%s:%s" version timestamp body in

0 commit comments

Comments
 (0)