aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-09-17 12:27:42 +0200
committerLoïc Hoguin <[email protected]>2012-09-17 13:57:29 +0200
commit9090cd976553a8527d59e2638793011a3604e262 (patch)
tree2f38e80228ba32d42856c3dc222a359d116b84f9 /src/cowboy_http.erl
parent18be3a8021c20b9b20f919a4b59a3e8ca110c929 (diff)
downloadcowboy-9090cd976553a8527d59e2638793011a3604e262.tar.gz
cowboy-9090cd976553a8527d59e2638793011a3604e262.tar.bz2
cowboy-9090cd976553a8527d59e2638793011a3604e262.zip
Replace many proplists:get_value/{2,3} calls by BIFs
Originally suggested by Roberto Ostinelli.
Diffstat (limited to 'src/cowboy_http.erl')
-rw-r--r--src/cowboy_http.erl4
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().