Skip to content

Commit

Permalink
Merge pull request #145 from a-kenji/fix/authorization
Browse files Browse the repository at this point in the history
fix: Use correct AUTHORIZATION header
  • Loading branch information
a-kenji authored Sep 3, 2024
2 parents 066c55d + 5dd778e commit 6c0d7a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::collections::HashMap;
use std::process::Command;

use reqwest::blocking::Client;
use reqwest::header::{HeaderMap, HeaderValue, USER_AGENT};
use reqwest::header::{HeaderMap, HeaderValue, AUTHORIZATION, USER_AGENT};
use semver::Version;
use serde::Deserialize;

Expand Down Expand Up @@ -93,8 +93,9 @@ fn query_tags(repo: &str, owner: &str) -> Result<IntermediaryTags, ()> {
if let Some(token) = get_gh_token() {
tracing::debug!("Found github token.");
headers.insert(
"authorization: Bearer",
AUTHORIZATION,
HeaderValue::from_str(&token).unwrap(),
// HeaderValue::from_str(&token).unwrap(),
);
tracing::debug!("Settings github token.");
}
Expand Down

0 comments on commit 6c0d7a8

Please sign in to comment.