From 142703b81af61096e0eac139cf5dcbf304c4ad21 Mon Sep 17 00:00:00 2001 From: Vadim Zaytsev Date: Tue, 1 Mar 2016 17:59:51 +0300 Subject: [PATCH] Fix working with proxy servers --- install.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.js b/install.js index 8531a73..d83135c 100755 --- a/install.js +++ b/install.js @@ -17,6 +17,7 @@ systemfiles = [ process.env.NODE_UNICODETABLE_UNICODEDATA_TXT || "UnicodeData.txt", // manually downloaded ], unicodedatafile = { + scheme: "http", host: "unicode.org", path: "/Public/UNIDATA/UnicodeData.txt", method: 'GET', @@ -123,7 +124,7 @@ function read_file(success_cb, error_cb) { function download_file(callback) { var timeouthandle = null; - console.log("%s %s:%d%s", unicodedatafile.method, unicodedatafile.host, + console.log("%s %s://%s:%d%s", unicodedatafile.method, unicodedatafile.scheme, unicodedatafile.host, unicodedatafile.port, unicodedatafile.path); if (proxyServer) {