Skip to content

Commit

Permalink
fix: headers updation
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritish Budhiraja committed May 17, 2024
1 parent 470b78b commit 2f8dc4e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Utilities/Utils.res
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,11 @@ let delay = timeOut => {
}
let getHeaders = (~uri=?, ~token=?, ~headers=Dict.make(), ()) => {
let headerObj =
[("Content-Type", "application/json"), ("X-Client-Version", Window.version)]->Dict.fromArray
[
("Content-Type", "application/json"),
("X-Client-Version", Window.version),
("X-Payment-Confirm-Source", "sdk"),
]->Dict.fromArray

switch (token, uri) {
| (Some(tok), Some(_uriVal)) => headerObj->Dict.set("Authorization", tok)
Expand Down

0 comments on commit 2f8dc4e

Please sign in to comment.