Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix working with proxy servers #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

vadzay
Copy link

@vadzay vadzay commented Mar 1, 2016

When you try to install this module using proxy, install.js will silently fail, because any normal proxy server will decline request which does not mention scheme and return HTTP 400.

This commit fixes this, this way will work either using proxy, or not.

@@ -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,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also needs to be added below within if (proxyServer)... unicodedatafile.path = unicodedatafile.scheme + "://" + unicodedatafile.host

this would then resolve many issues on dependant projects:
dodo/node-slug#58
keystonejs/generator-keystone#129

the symptom I'm seeing is Error: Cannot find module 'unicode/category/So'

@JLHwung
Copy link

JLHwung commented Jan 19, 2017

This PR is duplicates of #22 and I suggest to close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants