node-http-proxy icon indicating copy to clipboard operation
node-http-proxy copied to clipboard

crash when 'options.target' is an object instead a string

Open vilherda opened this issue 3 years ago • 0 comments
trafficstars

Sometimes the attribute 'options.target' is not a string and is an object like:

{
    "protocol": "http:",
    "slashes": true,
    "auth": null,
    "host": "some.hostname.fake",
    "port": null,
    "hostname": "some.hostname.fake",
    "hash": null,
    "search": null,
    "query": null,
    "pathname": "/",
    "path": "/",
    "href": "http://some.hostname.fake"
}

In this case is necessary to access to the attribute 'options.target.href'.

vilherda avatar Jul 16 '22 10:07 vilherda