mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-12 05:38:55 +09:00
Add note
This commit is contained in:
parent
1a984de8e8
commit
7096c0ca49
@ -25,6 +25,7 @@ export async function downloadUrl(url: string, path: string) {
|
||||
rej(error);
|
||||
});
|
||||
|
||||
// 多バイト文字が含まれてそうだったらリクエスト前にURIエンコードする
|
||||
const requestUrl = new URL(url).pathname.match(/[^\u0021-\u00ff]/) ? encodeURI(url) : url;
|
||||
|
||||
const req = request({
|
||||
|
Loading…
Reference in New Issue
Block a user