diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_http_req.erl | 3 |
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}); |