From 8e55c2e2b897322f0d995117efe31b25c9c55cda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 21 Mar 2011 22:13:35 +0100 Subject: Fix spec for cowboy_dispatcher:split_path/1. --- src/cowboy_dispatcher.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cowboy_dispatcher.erl') 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 -> -- cgit v1.2.3