aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http_req.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-03-21 22:33:42 +0100
committerLoïc Hoguin <[email protected]>2011-03-21 22:33:42 +0100
commitfdd9d4c0ef37eecbe0ac275e25784c2888164695 (patch)
treecb67e73670902aa34b57392988d3c8d4cb218253 /src/cowboy_http_req.erl
parent0c0b75f76be16dc3933e4fa5d7d90fb29cd2a362 (diff)
downloadcowboy-fdd9d4c0ef37eecbe0ac275e25784c2888164695.tar.gz
cowboy-fdd9d4c0ef37eecbe0ac275e25784c2888164695.tar.bz2
cowboy-fdd9d4c0ef37eecbe0ac275e25784c2888164695.zip
Fix spec for cowboy_http_req:qs_vals/1.
Diffstat (limited to 'src/cowboy_http_req.erl')
-rw-r--r--src/cowboy_http_req.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl
index 856c91c..24500be 100644
--- a/src/cowboy_http_req.erl
+++ b/src/cowboy_http_req.erl
@@ -88,7 +88,8 @@ qs_val(Name, Default, Req) ->
Value = proplists:get_value(Name, Req#http_req.qs_vals, Default),
{Value, Req}.
--spec qs_vals(Req::#http_req{}) -> list({Name::atom(), Value::string()}).
+-spec qs_vals(Req::#http_req{})
+ -> {list({Name::atom(), Value::string()}), Req::#http_req{}}.
qs_vals(Req=#http_req{raw_qs=RawQs, qs_vals=undefined}) ->
QsVals = parse_qs(RawQs),
qs_vals(Req#http_req{qs_vals=QsVals});