Qard / http-request-to-url

Get url of an http client request
0 stars 1 forks source link

feat: follow proxies #2

Closed astorm closed 3 years ago

astorm commented 3 years ago

Fix for #1. This PR adds @watson's test to the suite, implements a options array for the httpRequestToUrl function, and adds new behavior to return request.path when the request looks like a proxied request. Per suggestions from the issue thread, this options array has a single option, followProxies, which defaults to true.

Additional comments inline.

Qard commented 3 years ago

Released in v1.1.0. Thanks! :)