This is an automated email from the ASF dual-hosted git repository.

tustvold pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new bcfe63ec5 fix: Specify content length for gcp copy request (#3921)
bcfe63ec5 is described below

commit bcfe63ec5b0420b030e45091b8fc7c79e091646a
Author: Sean Smith <[email protected]>
AuthorDate: Thu Mar 23 15:53:56 2023 -0500

    fix: Specify content length for gcp copy request (#3921)
    
    * fix: Specify content length for gcp copy request
    
    * Include comment about native-tls/rust-tls
    
    Co-authored-by: Raphael Taylor-Davies 
<[email protected]>
    
    ---------
    
    Co-authored-by: Raphael Taylor-Davies 
<[email protected]>
---
 object_store/src/gcp/mod.rs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/object_store/src/gcp/mod.rs b/object_store/src/gcp/mod.rs
index 97f44446f..fe79a6e07 100644
--- a/object_store/src/gcp/mod.rs
+++ b/object_store/src/gcp/mod.rs
@@ -437,6 +437,9 @@ impl GoogleCloudStorageClient {
 
         builder
             .bearer_auth(token)
+            // Needed if reqwest is compiled with native-tls instead of 
rustls-tls
+            // See https://github.com/apache/arrow-rs/pull/3921
+            .header(header::CONTENT_LENGTH, 0)
             .send_retry(&self.retry_config)
             .await
             .map_err(|err| {

Reply via email to