添加 authorize_download_url_2 方法,对包含中文或其它 utf-8 字符的Key做下载授权。

This commit is contained in:
Liang Tao
2014-07-01 14:40:48 +08:00
parent 1222559c71
commit 58dfe18328
+1
View File
@@ -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)