diff options
Diffstat (limited to 'src/cowboy_http.erl')
-rw-r--r-- | src/cowboy_http.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl index aea71c1..f3457dc 100644 --- a/src/cowboy_http.erl +++ b/src/cowboy_http.erl @@ -868,8 +868,8 @@ urlencode(Bin) -> %% instead. -spec urlencode(binary(), [noplus|upper]) -> binary(). urlencode(Bin, Opts) -> - Plus = not proplists:get_value(noplus, Opts, false), - Upper = proplists:get_value(upper, Opts, false), + Plus = not lists:member(noplus, Opts), + Upper = lists:member(upper, Opts), urlencode(Bin, <<>>, Plus, Upper). -spec urlencode(binary(), binary(), boolean(), boolean()) -> binary(). |