mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Add note
This commit is contained in:
parent
16ae0e036d
commit
e4ff9adbcb
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue