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

Fix #2637

parent 7096c0ca
No related branches found
No related tags found
No related merge requests found
......@@ -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: {
......
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