Skip to content

Commit 72a47fb

Browse files
committed
Swap out for deprecated hostname
1 parent 75858be commit 72a47fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/parsers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ module.exports.parseRequest = function parseRequest(req, kwargs) {
7878
// host:
7979
//
8080
// node: req.headers.host
81-
// express: req.host
81+
// express: req.hostname
8282
// koa: req.host
8383
//
84-
var host = req.host || headers.host || '<no host>';
84+
var host = req.hostname || headers.host || '<no host>';
8585

8686
// protocol:
8787
//

0 commit comments

Comments
 (0)