Skip to content

Commit

Permalink
fix(backend/gitlab): switch prefix of the authorization header from `…
Browse files Browse the repository at this point in the history
…token` to `bearer`
  • Loading branch information
d-corler authored May 8, 2021
1 parent fc9b2f3 commit f528df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/gitlab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ fn api_headers(auth_token: &Option<String>) -> Result<header::HeaderMap> {
if let Some(token) = auth_token {
headers.insert(
header::AUTHORIZATION,
format!("token {}", token)
format!("bearer {}", token)
.parse()
.map_err(|err| Error::Config(format!("Failed to parse auth token: {}", err)))?,
);
Expand Down

0 comments on commit f528df3

Please sign in to comment.