You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2024/04/09 01:41:29 UTC

(opendal) branch main updated: fix(core/services/gdrive): Fix gdrive test failed for refresh token (#4435)

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

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 89a0afbee4 fix(core/services/gdrive): Fix gdrive test failed for refresh token (#4435)
89a0afbee4 is described below

commit 89a0afbee46ba66a3e659a6f04fc4f71ee0fc837
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Tue Apr 9 09:41:20 2024 +0800

    fix(core/services/gdrive): Fix gdrive test failed for refresh token (#4435)
    
    * fix(core/services/gdrive): Fix gdrive test failed for refresh token
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
    
    * Format code
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
    
    ---------
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
 core/src/services/gdrive/core.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/src/services/gdrive/core.rs b/core/src/services/gdrive/core.rs
index 96bda1254a..e5d34adacb 100644
--- a/core/src/services/gdrive/core.rs
+++ b/core/src/services/gdrive/core.rs
@@ -304,6 +304,7 @@ impl GdriveSigner {
 
         {
             let req = Request::post(url)
+                .header(header::CONTENT_LENGTH, 0)
                 .body(AsyncBody::Empty)
                 .map_err(new_request_build_error)?;