I found an issue when attempting to use this library behind a proxy and found that it was not passing my main options object through to the utils.originalURL function so it could determine if it should trust the x-forwarded-host and x-forwarded-proto headers in the request.
I have added some rudimentary tests over the originalURL function aswell to make sure its functionality cannot be changed without being noticed.
I found an issue when attempting to use this library behind a proxy and found that it was not passing my main options object through to the utils.originalURL function so it could determine if it should trust the x-forwarded-host and x-forwarded-proto headers in the request.
I have added some rudimentary tests over the originalURL function aswell to make sure its functionality cannot be changed without being noticed.