Skip to content

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.

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