Skip to content

Commit 72f605f

Browse files
authored
Merge pull request #10 from n-thumann/fix_invalid_authorization_header
Change: Fix invalid authorization header
2 parents 6f0ca30 + a11e398 commit 72f605f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/nordvpn/api/credentials.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn get(token: String) -> Result<Credentials, Box<dyn std::error::Error>> {
2222
let client = reqwest::blocking::Client::new();
2323
let body: Credentials = client
2424
.get("https://api.nordvpn.com/v1/users/services/credentials")
25-
.header("Authorization", format!("token:{}", token))
25+
.header("Authorization", format!("Bearer token:{}", token))
2626
.send()?
2727
.json()?;
2828

0 commit comments

Comments
 (0)