microsoft / typed-rest-client

Node Rest and Http Clients with typings for use with TypeScript
Other
675 stars 118 forks source link

Fix processing of proxybypass variables from environment #286

Closed EzzhevNikita closed 3 years ago

EzzhevNikita commented 3 years ago

This PR should address the issue with the processing of proxy bypass variables. Current logic incorrectly processes any host that is passed to NOPROXY env variable in the format: .somehost.net_. Such hosts will be wrongly interpreted because they contain points in hosts. Point is a special symbol for regex, so it should be escaped by backslash.