Permalink
Browse files

Fix for encoded URLs

  • Loading branch information...
1 parent 6473f61 commit 6bfa695f0b5566346c77be77cd8112a12ae858f2 @baryshev committed Nov 16, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/connect-route.js
  2. +1 −1 package.json
View
2 lib/connect-route.js
@@ -58,7 +58,7 @@
Router.prototype.match = function (method, url) {
var
- parts = url.split('?', 1)[0].replace(separator, '').split('/'),
+ parts = decodeURI(url).split('?', 1)[0].replace(separator, '').split('/'),
result = { handler: undefined, route: undefined, params: {} },
current, i, length;
View
2 package.json
@@ -1,6 +1,6 @@
{
"name" : "connect-route",
- "version" : "0.1.2",
+ "version" : "0.1.3",
"description" : "Simple and fast router for Connect",
"keywords": [ "router", "connect" ],
"author" : "Vadim M. Baryshev <vadimbaryshev@gmail.com>",

0 comments on commit 6bfa695

Please sign in to comment.