aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-03-21 22:13:35 +0100
committerLoïc Hoguin <[email protected]>2011-03-21 22:13:35 +0100
commit8e55c2e2b897322f0d995117efe31b25c9c55cda (patch)
treec3d61ccb8e4c816bc0044ceadc7eeea93c4dbbaa
parent193968d53e890c5aeb845e3f54ba6fee6d300df7 (diff)
downloadcowboy-8e55c2e2b897322f0d995117efe31b25c9c55cda.tar.gz
cowboy-8e55c2e2b897322f0d995117efe31b25c9c55cda.tar.bz2
cowboy-8e55c2e2b897322f0d995117efe31b25c9c55cda.zip
Fix spec for cowboy_dispatcher:split_path/1.
-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 ->