aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cowboy_dispatcher.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cowboy_dispatcher.erl b/src/cowboy_dispatcher.erl
index a5be924..eb2355a 100644
--- a/src/cowboy_dispatcher.erl
+++ b/src/cowboy_dispatcher.erl
@@ -24,7 +24,8 @@
split_host(Host) ->
string:tokens(Host, ".").
--spec split_path(Path::string()) -> {Tokens::path_tokens(), Qs::string()}.
+-spec split_path(Path::string())
+ -> {Tokens::path_tokens(), Path::string(), Qs::string()}.
split_path(Path) ->
case string:chr(Path, $?) of
0 ->