From b874b28561e0e3d626245dee91ac44ad4d8218f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 20 Mar 2011 00:01:29 +0100 Subject: Save the raw path string in the request. --- src/cowboy_dispatcher.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cowboy_dispatcher.erl') 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()) -- cgit v1.2.3