Skip to content

Commit

Permalink
Merge pull request #393 from stefano-pogliani/fix-auth
Browse files Browse the repository at this point in the history
fix: Correct format of Bearer authentication header
  • Loading branch information
eko authored Dec 1, 2024
2 parents 460e111 + ea82d21 commit a03d110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tado/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl Client {
async fn get(&self, url: reqwest::Url) -> Result<reqwest::Response, reqwest::Error> {
self.http_client
.get(url)
.header("Authorization", format!("Bearer: {}", self.access_token))
.header("Authorization", format!("Bearer {}", self.access_token))
.send()
.await
}
Expand Down

0 comments on commit a03d110

Please # to comment.