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/08 05:58:49 UTC
(opendal) 01/01: fix(core/services/gdrive): Fix gdrive test failed for refresh token
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch fix-gdrive-oauth
in repository https://gitbox.apache.org/repos/asf/opendal.git
commit 3af344d08cfd309c0181914a635e3e65f86ab03a
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon Apr 8 13:58:22 2024 +0800
fix(core/services/gdrive): Fix gdrive test failed for refresh token
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
core/src/services/gdrive/core.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/services/gdrive/core.rs b/core/src/services/gdrive/core.rs
index 96bda1254a..e13b48b88e 100644
--- a/core/src/services/gdrive/core.rs
+++ b/core/src/services/gdrive/core.rs
@@ -303,7 +303,7 @@ impl GdriveSigner {
);
{
- let req = Request::post(url)
+ let req = Request::post(url).header(header::CONTENT_LENGTH, 0)
.body(AsyncBody::Empty)
.map_err(new_request_build_error)?;