Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.11.4]: Does not support to set 'User-Agent' #71

Closed
AbelHu opened this issue Dec 20, 2016 · 1 comment
Closed

[0.11.4]: Does not support to set 'User-Agent' #71

AbelHu opened this issue Dec 20, 2016 · 1 comment

Comments

@AbelHu
Copy link
Member

AbelHu commented Dec 20, 2016

azure-storage-ruby 0.11.4 does not support to set 'User-Agent'. It always use the default 'User-Agent'.

def common_headers(options = {})
headers = {
'x-ms-version' => Azure::Storage::Default::STG_VERSION,
'User-Agent' => Azure::Storage::Default::USER_AGENT
}
headers.merge!({'x-ms-client-request-id' => options[:request_id]}) if options[:request_id]
headers
end

        def common_headers(options = {})
          headers = {
            'x-ms-version' => Azure::Storage::Default::STG_VERSION,
            'User-Agent' => Azure::Storage::Default::USER_AGENT
          }
          headers.merge!({'x-ms-client-request-id' => options[:request_id]}) if options[:request_id]
          headers
        end
@yaxia
Copy link
Member

yaxia commented Dec 20, 2016

Thanks. I am on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants