aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_dispatcher.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-03-20 00:01:29 +0100
committerLoïc Hoguin <[email protected]>2011-03-20 00:01:29 +0100
commitb874b28561e0e3d626245dee91ac44ad4d8218f1 (patch)
treea548f609376a0cdde3dfa0e5c00290f5c965720e /src/cowboy_dispatcher.erl
parent8085529f48dd3a19baf5a4218d462e0afcfedbf9 (diff)
downloadcowboy-b874b28561e0e3d626245dee91ac44ad4d8218f1.tar.gz
cowboy-b874b28561e0e3d626245dee91ac44ad4d8218f1.tar.bz2
cowboy-b874b28561e0e3d626245dee91ac44ad4d8218f1.zip
Save the raw path string in the request.
Diffstat (limited to 'src/cowboy_dispatcher.erl')
-rw-r--r--src/cowboy_dispatcher.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_dispatcher.erl b/src/cowboy_dispatcher.erl
index d66caf0..d5ce6f7 100644
--- a/src/cowboy_dispatcher.erl
+++ b/src/cowboy_dispatcher.erl
@@ -30,10 +30,10 @@ split_path('*') ->
split_path(Path) ->
case string:chr(Path, $?) of
0 ->
- {string:tokens(Path, "/"), []};
+ {string:tokens(Path, "/"), Path, []};
N ->
{Path2, [$?|Qs]} = lists:split(N - 1, Path),
- {string:tokens(Path2, "/"), Qs}
+ {string:tokens(Path2, "/"), Path2, Qs}
end.
-spec match(Host::path_tokens(), Path::path_tokens(), Dispatch::dispatch())