You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by su...@apache.org on 2023/07/21 16:07:09 UTC
[incubator-opendal] 01/01: fix(services/obs): remove content-length check in baackend
This is an automated email from the ASF dual-hosted git repository.
suyanhanx pushed a commit to branch fix-obs-unsized-writer
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 2424d8ad14d09c3b33bc65ef6494d485185bfe8c
Author: suyanhanx <su...@gmail.com>
AuthorDate: Sat Jul 22 00:05:27 2023 +0800
fix(services/obs): remove content-length check in baackend
Signed-off-by: suyanhanx <su...@gmail.com>
---
core/src/services/obs/backend.rs | 7 -------
1 file changed, 7 deletions(-)
diff --git a/core/src/services/obs/backend.rs b/core/src/services/obs/backend.rs
index 470c06d05..a77b172b5 100644
--- a/core/src/services/obs/backend.rs
+++ b/core/src/services/obs/backend.rs
@@ -447,13 +447,6 @@ impl Accessor for ObsBackend {
}
async fn write(&self, path: &str, args: OpWrite) -> Result<(RpWrite, Self::Writer)> {
- if args.content_length().is_none() {
- return Err(Error::new(
- ErrorKind::Unsupported,
- "write without content length is not supported",
- ));
- }
-
Ok((
RpWrite::default(),
ObsWriter::new(self.core.clone(), path, args),