0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Fix spec for cowboy_dispatcher:split_path/1.

This commit is contained in:
Loïc Hoguin 2011-03-21 22:13:35 +01:00
parent 193968d53e
commit 8e55c2e2b8

View file

@ -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 ->