mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Fix spec for cowboy_http_req:parse_qs/1.
This commit is contained in:
parent
c645b682e7
commit
775a03e6eb
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ reply(Code, Headers, Body, Req=#http_req{socket=Socket,
|
|||
|
||||
%% Internal.
|
||||
|
||||
-spec parse_qs(Qs::string()) -> list({Name::string(), Value::string()}).
|
||||
-spec parse_qs(Qs::string()) -> list({Name::string(), Value::string() | true}).
|
||||
parse_qs(Qs) ->
|
||||
Tokens = string:tokens(Qs, "&"),
|
||||
[case string:chr(Token, $=) of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue