Skip to content
Browse files

Fix HTTP request URL host / hostname

  • Loading branch information...
1 parent 37935df commit 6665d68b0b77790c9b30bc87b99e09276714ed76 @kriskowal committed Mar 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 http.js
View
2 http.js
@@ -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.
Something went wrong with that request. Please try again.