mirror of
https://github.com/wahyd4/ruby-sdk.git
synced 2026-08-09 04:46:10 +10:00
添加 authorize_download_url_2 方法,对包含中文或其它 utf-8 字符的Key做下载授权。
This commit is contained in:
@@ -176,6 +176,7 @@ module Qiniu
|
||||
return "#{download_url}&token=#{dntoken}"
|
||||
end # authorize_download_url
|
||||
|
||||
### 对包含中文或其它 utf-8 字符的 Key 做下载授权
|
||||
def authorize_download_url_2(domain, key, args = EMPTY_ARGS)
|
||||
url_encoded_key = CGI::escape(key)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user