zkat / make-fetch-happen

Get in loser, we're making requests!
Other
384 stars 27 forks source link

Check for both upper and lowercase proxy options in env #22

Closed zkat closed 7 years ago

zkat commented 7 years ago

https://github.com/zkat/make-fetch-happen/blob/latest/index.js#L426-L440

make-fetch-happen looks in the environment for certain proxy settings. I thought originally these were case-insensitive. They're not.

So, add some code to make sure these process.env props are checked in both forms.