mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Fix spec for cowboy_dispatcher:split_path/1.
This commit is contained in:
parent
193968d53e
commit
8e55c2e2b8
1 changed files with 2 additions and 1 deletions
|
@ -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 ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue