From 9090cd976553a8527d59e2638793011a3604e262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 17 Sep 2012 12:27:42 +0200 Subject: Replace many proplists:get_value/{2,3} calls by BIFs Originally suggested by Roberto Ostinelli. --- src/cowboy_http.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cowboy_http.erl') 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(). -- cgit v1.2.3