Closed
Description
I'm trying to upload to a blob store using .put_block_list
. The upload is working OK except for specifying the content-type and content-encoding. My code snippet as follows:
let response = blob
.put_block_list(block_list)
.content_md5(hash)
.content_type("application/json")
.content_encoding("gzip")
.into_future()
.await?;
However, despite the request succeeding the content-type remains the default "application/octet-stream"
, and the content-encoding is unset. Looking at the headers sent in the request (according to the debug logging) I wonder if there is a problem here. The request specifies "content-type"
and "content-encoding"
, but I understood these should be "x-ms-blob-content-type"
and "x-ms-blob-content-encoding"
respectively.
Metadata
Metadata
Assignees
Labels
No labels