Skip to content

Commit

Permalink
log header
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushgaud committed Sep 4, 2024
1 parent 8c22c9b commit 5952588
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/wrike_ist/azure.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
(some-> js/process .-env .-AZURE_TOKEN .trim))

(defn- headers []
{:Authorization (str "Basic " (js/btoa (str (azure-token))))
:Content-Type "application/json"})
{:Authorization (str "Basic " (js/btoa (str (azure-token))))})

(defn parse-body
[response]
Expand Down Expand Up @@ -47,7 +46,7 @@
(find-task permalink)
(fn [id]
(js/console.log (str "link-pr: Found task ID:" id))
(js/console.log (str "headers:" headers))
(js/console.log (str "headers:" (headers)))
(let [uri (str "https://dev.azure.com/" organization "/" project "/_apis/wit/workitems/" id "/comments?api-version=6.0")]
(js/console.log (str "uri:" uri))
(-> (http/get uri {:headers (headers)})
Expand Down

0 comments on commit 5952588

Please sign in to comment.