Permalink
Browse files

Fix HTTP request URL host / hostname

  • Loading branch information...
kriskowal committed Mar 16, 2013
1 parent 37935df commit 6665d68b0b77790c9b30bc87b99e09276714ed76
Showing with 1 addition and 1 deletion.
  1. +1 −1 http.js
View
@@ -191,7 +191,7 @@ exports.ServerRequest = function (_request, ssl) {
/*** {String} url */
request.url = URL.format({
protocol: request.scheme,
- hostname: _request.headers.host,
+ host: _request.headers.host,
port: request.port === (ssl ? 443 : 80) ? null : request.port,
path: request.path
});

0 comments on commit 6665d68

Please sign in to comment.