azure-sdk-for-ruby icon indicating copy to clipboard operation
azure-sdk-for-ruby copied to clipboard

Unexpected content-encoding generated by asm v0.7.10

Open whs-dot-hk opened this issue 4 years ago • 2 comments

require 'azure'

#https://rubydoc.info/gems/azure/
Azure.storage_account_name = <account name>
Azure.storage_access_key = <storage key>
default_blobs = Azure.blobs

default_blobs.create_container("content-encoding-test", {})

default_blobs.create_block_blob("content-encoding-test", "content-encoding-empty", "Hello world", {content_type: "application/json; charset=utf-8"})

an unexpected

ContentEncoding: utf-8

is generated by the code below

https://github.com/Azure/azure-sdk-for-ruby/blob/f9d1dcfc05e980c4452d53b10ea82b26095296f6/lib/azure/blob/blob_service.rb#L1373

whs-dot-hk avatar Oct 18 '19 10:10 whs-dot-hk

@whs-dot-hk Hello. Thanks! I may need some time to look at this issue. Because all of these sdk are auto-generated from swagger. Usually a manual PR is not acceptable.

mmyyrroonn avatar Oct 30 '19 09:10 mmyyrroonn

Hi, we came across this issue when trying to use the this library (azure blob) and azure cdn

with content encoding utf-8 the cdn won't serve our content

whs-dot-hk avatar Oct 30 '19 09:10 whs-dot-hk

Thank you for your interest in Azure SDKs. As detailed in this retirement announcement, this repo is no longer supported as of December 31st 2021. Please find the up-to-date list of languages and services supported with Azure SDKs here: https://aka.ms/azsdk

kurtzeborn avatar Jan 11 '23 03:01 kurtzeborn