Xuanwo opened a new pull request, #9303:
URL: https://github.com/apache/opendal/pull/9303

   # Which issue does this PR close?
   
   Refs #6274. Follows #9301.
   
   # Rationale for this change
   
   On Azure Storage, a single-object Service SAS PUT created a blob with 
neither `Content-Encoding` nor `Content-Language` even though the caller 
supplied both options. Adding the two native Azure property headers to a 
control PUT stored both values.
   
   # What changes are included in this PR?
   
   The `Put Blob` request builder forwards `content_encoding` as 
`x-ms-blob-content-encoding` and `content_language` as 
`x-ms-blob-content-language`. Each option controls its own header. The Shared 
Key SAS regression test exercises all four combinations.
   
   # Are there any user-facing changes?
   
   Callers using `azblob` can set these properties through 
`presign_write_options` and send the returned PUT with its headers intact. On 
real Azure Storage, independent HEAD and GET requests matching the upload ETag 
returned `gzip` and `fr-CA`. GET returned all 100 original gzip bytes with 
automatic decompression disabled. Omitting both options left both properties 
unset.
   
   # Breaking changes
   
   # AI Usage Statement
   
   All agents used Pi. `magpie/codex/gpt-6.2-sol` (max) reproduced the issue, 
implemented the fix, and verified the upload and cleanup. The same model at 
high effort independently reviewed the patch and evidence. 
`magpie/codex/gpt-6.2-astra` (high) coordinated the change and edited the 
description. `magpie/agy-cli/gemini-4-neon` (high) drafted the description.
   
   Live verification covered single-object Shared Key Service SAS PUT with both 
options supplied and both omitted. The service tests also exercise each option 
on its own.


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