We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9d6f49 + 9c66bec commit c4d68c2Copy full SHA for c4d68c2
qiniu/rs.js
@@ -230,8 +230,8 @@ GetPolicy.prototype.makeRequest = function(baseUrl, mac) {
230
231
return baseUrl + '&token=' + downloadToken;
232
}
233
-
234
-function makeBaseUrl(domain, key) {
+// query like '-thumbnail', '?imageMogr2/thumbnail/960x' and so on
+function makeBaseUrl(domain, key, query) {
235
key = new Buffer(key);
236
- return 'http://' + domain + '/' + querystring.escape(key);
+ return 'http://' + domain + '/' + querystring.escape(key) + (query||'');
237
0 commit comments