Skip to content

Commit

Permalink
Don't urlDecode router parameters as URL.path is already decoded.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Jan 21, 2014
1 parent 4d250ab commit 11393a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/vibe/http/router.d
Expand Up @@ -10,7 +10,6 @@ module vibe.http.router;
public import vibe.http.server;

import vibe.core.log;
import vibe.textfilter.urlencode;

import std.functional;

Expand Down Expand Up @@ -209,7 +208,7 @@ private struct Route {
string name = skipPathNode(pattern, j);
string match = skipPathNode(url, i);
assert(tmppparams_length < maxRouteParameters, "Maximum number of route parameters exceeded.");
tmpparams[tmppparams_length++] = tuple(name, urlDecode(match));
tmpparams[tmppparams_length++] = tuple(name, match);
} else return false;
}

Expand Down

0 comments on commit 11393a4

Please sign in to comment.