benroeder opened a new issue, #7205:
URL: https://github.com/apache/opendal/issues/7205

   ## Describe the bug
   
   The Swift backend's `swift_create_object()` does not forward Content-Type, 
Content-Disposition, Content-Encoding, or Cache-Control headers from `OpWrite`. 
The capability flags are also missing, so these options are silently ignored.
   
   Without an explicit Content-Type, Swift defaults to `text/plain`. If a user 
sets `.content_type("application/json")`, it has no effect — the object is 
still stored as `text/plain`.
   
   ## Steps to Reproduce
   
   1. Configure a Swift backend
   2. Write an object with `op.write_with("data.txt", 
body).content_type("application/json").await`
   3. Stat the object — content type is `text/plain` rather than the requested 
`application/json`
   
   ## Expected Behavior
   
   Headers passed via `OpWrite` should be forwarded to Swift on PUT. Stat 
should return `application/json`.


-- 
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]

Reply via email to