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

suyanhanx pushed a commit to branch dropbox-test
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit af49b452fa73114e4f6d75887eaf397e19667fca
Author: suyanhanx <[email protected]>
AuthorDate: Wed Jun 21 00:07:13 2023 +0800

    try
    
    Signed-off-by: suyanhanx <[email protected]>
---
 core/src/services/dropbox/core.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/src/services/dropbox/core.rs 
b/core/src/services/dropbox/core.rs
index ad4655a32..d58a23f7c 100644
--- a/core/src/services/dropbox/core.rs
+++ b/core/src/services/dropbox/core.rs
@@ -82,6 +82,8 @@ impl DropboxCore {
         }
         if let Some(mime) = content_type {
             request_builder = request_builder.header(header::CONTENT_TYPE, 
mime);
+        } else {
+            request_builder = request_builder.header(header::CONTENT_TYPE, 
"application/octet-stream");
         }
         let request = self
             .build_auth_header(request_builder)

Reply via email to