Skip to content

Commit

Permalink
revert: do not change sign logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jdockerty committed Aug 13, 2024
1 parent 3346244 commit 2a98679
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions core/src/services/gcs/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,6 @@ impl GcsCore {
}

pub async fn sign<T>(&self, req: &mut Request<T>) -> Result<()> {
if let Some(token) = &self.token {
req.headers_mut().remove(HOST);

let header_value = format!("Bearer {}", token);
req.headers_mut()
.insert(header::AUTHORIZATION, header_value.parse().unwrap());
return Ok(());
}

if let Some(cred) = self.load_token().await? {
self.signer
.sign(req, &cred)
Expand Down

0 comments on commit 2a98679

Please sign in to comment.