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.
1 parent 42128f2 commit 8572c1cCopy full SHA for 8572c1c
src/plugins/uploader/tcyun.ts
@@ -75,7 +75,7 @@ const postOptions = (options: ITcyunConfig, fileName: string, signature: ISignat
75
76
return {
77
method: 'PUT',
78
- url: `http://${options.bucket}.${endpoint}/${encodeURIComponent(path)}${encodeURIComponent(fileName)}`,
+ url: `http://${options.bucket}.${endpoint}/${encodeURI(path)}${encodeURIComponent(fileName)}`,
79
headers: {
80
Host: `${options.bucket}.${endpoint}`,
81
Authorization: `q-sign-algorithm=sha1&q-ak=${options.secretId}&q-sign-time=${signature.signTime}&q-key-time=${signature.signTime}&q-header-list=host&q-url-param-list=&q-signature=${signature.signature}`,
0 commit comments