alamb commented on code in PR #861:
URL: 
https://github.com/apache/arrow-rs-object-store/pull/861#discussion_r4804336119


##########
src/gcp/client.rs:
##########
@@ -234,10 +234,10 @@ impl Request<'_> {
     }
 
     async fn send(self) -> Result<HttpResponse> {
-        let credential = self.config.credentials.get_credential().await?;
+        let credential = self.config.get_credential().await?;
         let resp = self
             .builder
-            .bearer_auth(&credential.bearer)
+            .with_bearer_auth(credential.as_deref())

Review Comment:
   the difference here: 
   
   > bearer_auth always sets the header; with_bearer_auth is a GCP-specific 
wrapper that sets it only when there is a non-empty token



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to