Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix #172

  • Loading branch information...
commit b1b21ef8ce14d715096ed62ae5d7eca4e76041b3 1 parent 7f922b6
@milani milani authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/router/Request.js
View
5 lib/router/Request.js
@@ -6,8 +6,9 @@ var ClientRequest = require('http').ClientRequest,
module.exports = Request;
function Request(request){
- var parsed = url.parse(request.url, true);
- this.url = request.url.replace(/^http(s)?:\/\/([^\/]*)/,'');
+ var decodedURL = decodeURIComponent(request.url);
+ var parsed = url.parse(decodedURL, true);
+ this.url = decodedURL;
this.headers = request.headers;
this.method = request.method.toLowerCase();
this.pathname = parsed.pathname;
Please sign in to comment.
Something went wrong with that request. Please try again.