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

Remove lowercase connection and authorization on options.header #7

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

Conversation

kristofferjansson
Copy link

Hi there!
I got a problem with nock complaining about duplicate headers when I proxy requests with ntlm.post and mocking the ntlm url.

The _.extend of Connection and Authorization replaces headers in options if they are same casing but in my case I grab all headers I get from an external request and put them in options.headers and they are lowercase.

So in this PR I just delete the lowercase headers.

Very fresh on node so please let me know if I can change something (or if you want to throw this in the trash).

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.

1 participant