Skip to content
Snippets Groups Projects
Unverified Commit 7096c0ca authored by syuilo's avatar syuilo
Browse files

Add note

parent 1a984de8
No related branches found
No related tags found
No related merge requests found
......@@ -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({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment