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

Fix spec for cowboy_http_req:parse_qs/1.

This commit is contained in:
Loïc Hoguin 2011-03-22 13:19:38 +01:00
parent c645b682e7
commit 775a03e6eb

View file

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