From 0f749cd3649d5762344cec23bae2e58074594686 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 18 Jun 2019 15:19:19 +0900 Subject: [PATCH] Fix #2637 --- src/misc/donwload-url.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/misc/donwload-url.ts b/src/misc/donwload-url.ts index 9ab5fe0b0..e2f10c0e4 100644 --- a/src/misc/donwload-url.ts +++ b/src/misc/donwload-url.ts @@ -25,11 +25,8 @@ 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({ - url: requestUrl, + url: new URL(url).href, // https://github.com/syuilo/misskey/issues/2637 proxy: config.proxy, timeout: 10 * 1000, headers: {