Skip to content

Commit a4790f3

Browse files
committed
Try to get hostname first
1 parent 0acfd39 commit a4790f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parsers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ module.exports.parseRequest = function parseRequest(req, kwargs) {
8181
// express: req.hostname in > 4 and req.host in < 4
8282
// koa: req.host
8383
//
84-
var host = req.host || req.hostname || headers.host || '<no host>';
84+
var host = req.hostname || req.host || headers.host || '<no host>';
8585

8686
// protocol:
8787
//

0 commit comments

Comments
 (0)