diff options
author | Loïc Hoguin <[email protected]> | 2013-01-15 17:38:24 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-01-15 17:38:24 +0100 |
commit | 56d75d4c03bd6eb0f7c89806b310a9c38022b6fd (patch) | |
tree | 357f7d1a135a7bdbb1b355191897cebc040a5b82 /src/ranch.erl | |
parent | 9fd9294a13375a56c42b4b77225bbe317ecf0b4d (diff) | |
parent | c7bf6d2e4d4ae559ffd1ca429cbe605f710e7f0c (diff) | |
download | ranch-56d75d4c03bd6eb0f7c89806b310a9c38022b6fd.tar.gz ranch-56d75d4c03bd6eb0f7c89806b310a9c38022b6fd.tar.bz2 ranch-56d75d4c03bd6eb0f7c89806b310a9c38022b6fd.zip |
Merge branch 'master' of https://github.com/ferd/ranch
Diffstat (limited to 'src/ranch.erl')
-rw-r--r-- | src/ranch.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ranch.erl b/src/ranch.erl index 752819e..6f1b6fe 100644 --- a/src/ranch.erl +++ b/src/ranch.erl @@ -169,6 +169,11 @@ filter_options([Opt = {Key, _}|Tail], AllowedKeys, Acc) -> case lists:member(Key, AllowedKeys) of true -> filter_options(Tail, AllowedKeys, [Opt|Acc]); false -> filter_options(Tail, AllowedKeys, Acc) + end; +filter_options([Opt = {raw, _, _, _}|Tail], AllowedKeys, Acc) -> + case lists:member(raw, AllowedKeys) of + true -> filter_options(Tail, AllowedKeys, [Opt|Acc]); + false -> filter_options(Tail, AllowedKeys, Acc) end. %% @doc Add an option to a list, but only if it wasn't previously set. |