Skip to content

Commit

Permalink
Fix bearer token?
Browse files Browse the repository at this point in the history
  • Loading branch information
cswinter committed Jun 8, 2024
1 parent 2f242c0 commit b3c403a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logging_client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use locustdb_serialization::api::{
MultiQueryResponse, QueryResponse,
};
use locustdb_serialization::event_buffer::EventBuffer;
use reqwest::header::{self, CONTENT_TYPE};
use reqwest::header::{self, AUTHORIZATION, CONTENT_TYPE};
use tokio::select;
use tokio::time::{self, MissedTickBehavior};
use tokio_util::sync::CancellationToken;
Expand Down Expand Up @@ -217,7 +217,7 @@ impl LoggingClient {
let mut headers = header::HeaderMap::new();
headers.insert(CONTENT_TYPE, "application/json".parse().unwrap());
if let Some(bearer_token) = self.bearer_token.as_ref() {
headers.insert("Authorization", bearer_token.parse().unwrap());
headers.insert(AUTHORIZATION, bearer_token.parse().unwrap());
}
headers
}
Expand Down

0 comments on commit b3c403a

Please sign in to comment.