docs: url.format uses host for hostname and port, not auth
Fixes #3062.
This commit is contained in:
parent
59e6b14395
commit
b4626afb61
@ -70,7 +70,7 @@ Take a parsed URL object, and return a formatted URL string.
|
||||
* `auth` will only be used if `host` is absent.
|
||||
* `hostname` will only be used if `host` is absent.
|
||||
* `port` will only be used if `host` is absent.
|
||||
* `host` will be used in place of `auth`, `hostname`, and `port`
|
||||
* `host` will be used in place of `hostname` and `port`
|
||||
* `pathname` is treated the same with or without the leading `/` (slash)
|
||||
* `search` will be used in place of `query`
|
||||
* `query` (object; see `querystring`) will only be used if `search` is absent.
|
||||
|
Loading…
x
Reference in New Issue
Block a user