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

Added missing proxy fields #22

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

Added missing proxy fields #22

wants to merge 1 commit into from

Conversation

nwinkler
Copy link

When using http.get() to request a file through a proxy, the following were missing from the previous implementation:

  • The http:// protocol
  • The headers object indicating the target Host

These additions are based on http://stackoverflow.com/a/6781592/1228454 and work for our company proxy (MS NTLM Proxy).

The previous implementation always silently failed, it simply exited the process right after the fetching ... message.

When using http.get() to request a file through a proxy, the following
were missing from the previous implementation:

* The `http://` protocol
* The `headers` object indicating the target `Host`

These additions are based on http://stackoverflow.com/a/6781592/1228454
and work for our company proxy (MS NTLM Proxy).
@euphocat
Copy link

Worked for me too 👍

@nalbion
Copy link

nalbion commented Aug 26, 2016

@dodo 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'.

...The proxy server sends back a page saying "Sorry, I don't know how to get to that URL without a protocol" and this library tries to parse the error page as if it was UnicodeData.txt, so you end up with undefined.js and font-family: Tahoma, Roya, sans-serif.js in the category directory.

@nimser
Copy link

nimser commented Dec 1, 2016

Does this needs any more work before merging?

@dylanjha
Copy link

This would also fix an issue I'm seeing on Circle CI:

😄

@nicooprat
Copy link

Hi there, any news on this? This issue is pretty annoying... :)

@SamuelBolduc
Copy link

+1 on this, it is a very annoying issue causing our travis-ci builds to fail.

Copy link

@loganvolkers loganvolkers left a comment

Choose a reason for hiding this comment

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

Looks good

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.

8 participants