Skip to content

Commit aed88ab

Browse files
committed
url encode the access token in authorization header
1 parent 2d90fb7 commit aed88ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api_remote.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ end
5050
module Slack : Api.Slack = struct
5151
let log = Log.from "slack"
5252

53-
let bearer_token_header access_token = sprintf "Authorization: Bearer %s" access_token
53+
let bearer_token_header access_token = sprintf "Authorization: Bearer %s" (Uri.pct_decode access_token)
5454

5555
(** `send_notification ctx msg` notifies `msg.channel` with the payload `msg`;
5656
uses web API with access token if available, or with webhook otherwise *)

0 commit comments

Comments
 (0)