From 65de5ae1fbf6a0f4dacccc12f2a2e027142ae4b0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 13 Sep 2016 05:59:55 +0900 Subject: [PATCH] Fix bug --- src/general/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/general/index.ts b/src/general/index.ts index c9423d2..aed8d2d 100644 --- a/src/general/index.ts +++ b/src/general/index.ts @@ -95,7 +95,7 @@ export default async (url: URL.Url, opts: Options): Promise => { }); function proxy(url: string): string { - return `${opts.proxy}/${url}`; + return opts.proxy ? `${opts.proxy}/${url}` : url; } }