Skip to content

Commit

Permalink
url encode the access token in authorization header
Browse files Browse the repository at this point in the history
  • Loading branch information
yasunariw committed Dec 31, 2020
1 parent 028981c commit 0060a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api_remote.ml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ end
module Slack : Api.Slack = struct
let log = Log.from "slack"

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

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

0 comments on commit 0060a7b

Please sign in to comment.