From 7096c0ca49227af6182d08974d36bae6d1fc8363 Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Tue, 18 Jun 2019 14:04:41 +0900
Subject: [PATCH] Add note

---
 src/misc/donwload-url.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/misc/donwload-url.ts b/src/misc/donwload-url.ts
index 167e01fdd1..9ab5fe0b0a 100644
--- a/src/misc/donwload-url.ts
+++ b/src/misc/donwload-url.ts
@@ -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({