diff --git a/core/src/services/gcs/core.rs b/core/src/services/gcs/core.rs index 144d7520afe..6f91ce2f3c2 100644 --- a/core/src/services/gcs/core.rs +++ b/core/src/services/gcs/core.rs @@ -123,15 +123,6 @@ impl GcsCore { } pub async fn sign(&self, req: &mut Request) -> 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)