Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.
/ cli Public archive

Commit 23f3bb4

Browse files
committed
fix: fix Authorization header usage
1 parent f1fd6b1 commit 23f3bb4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Package
22

3-
version = "1.2.0"
3+
version = "1.2.1"
44
author = "Jonah Snider"
55
description = "A CLI to interact with ZWS"
66
license = "MIT"

src/api.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ proc shorten*(url: Uri): ShortenedUrl =
8080
let headers = newHttpHeaders({"Content-Type": "application/json"})
8181

8282
if cfg.api.token != "":
83-
headers["Authorization"] = cfg.api.token
83+
headers["Authorization"] = &"Bearer {cfg.api.token}"
8484

8585
let response = http.request($cfg.api.url, HttpPost, $(%*{"url": $url}), headers)
8686

0 commit comments

Comments
 (0)