Xuanwo commented on issue #3014:
URL:
https://github.com/apache/incubator-opendal/issues/3014#issuecomment-1707653536
Thanks for the report!
The root cause here is `tokio::io::copy(&mut reader, &mut
writer).await.unwrap();` won't call `write`, so no real `PUT` request has been
sent.
I have tested with:
```rust
let mut writer = op
.writer_with("/emptyfile.txt")
.content_length(data.len() as u64)
.await
.unwrap();
writer.write("").await.unwrap();
writer.close().await.unwrap();
```
I believe this will be fixed after our buffer refactor.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]