mirror of
https://github.com/wahyd4/ruby-sdk.git
synced 2026-08-09 04:46:10 +10:00
add new user agent
This commit is contained in:
+2
-4
@@ -15,7 +15,7 @@ module Qiniu
|
||||
class << self
|
||||
|
||||
DEFAULT_OPTIONS = {
|
||||
:user_agent => 'Qiniu-RS-Ruby-SDK-' + Version.to_s + '()',
|
||||
:user_agent => 'QiniuRuby/' + Version.to_s + '('+RUBY_PLATFORM+')' + ' Ruby/'+ RUBY_VERSION,
|
||||
:method => :post,
|
||||
:content_type => 'application/x-www-form-urlencoded',
|
||||
:auth_url => "https://acc.qbox.me/oauth2/token",
|
||||
@@ -23,8 +23,6 @@ module Qiniu
|
||||
:up_host => "http://up.qiniu.com",
|
||||
:pub_host => "http://pu.qbox.me:10200",
|
||||
:eu_host => "http://eu.qbox.me",
|
||||
:client_id => "a75604760c4da4caaa456c0c5895c061c3065c5a",
|
||||
:client_secret => "75df554a39f58accb7eb293b550fa59618674b7d",
|
||||
:access_key => "",
|
||||
:secret_key => "",
|
||||
:auto_reconnect => true,
|
||||
@@ -32,7 +30,7 @@ module Qiniu
|
||||
:block_size => 1024*1024*4,
|
||||
:chunk_size => 1024*256,
|
||||
:enable_debug => true,
|
||||
:tmpdir => Dir.tmpdir + File::SEPARATOR + 'Qiniu-RS-Ruby-SDK'
|
||||
:tmpdir => Dir.tmpdir + File::SEPARATOR + 'QiniuRuby'
|
||||
}
|
||||
|
||||
REQUIRED_OPTION_KEYS = [:access_key, :secret_key]
|
||||
|
||||
Reference in New Issue
Block a user