mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-04-01 02:42:23 -05:00
fix: remove req.host deprecation warning (#3921)
This commit is contained in:
parent
971d500c6e
commit
4be19db0c1
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ export default function (route: Router, auth: Auth, storage: Storage, config: Co
|
|||
{
|
||||
protocol: req.protocol,
|
||||
headers: req.headers as any,
|
||||
host: req.host,
|
||||
host: req.hostname,
|
||||
remoteAddress: req.socket.remoteAddress,
|
||||
},
|
||||
config.url_prefix
|
||||
|
|
Loading…
Add table
Reference in a new issue