diff options
author | Erlang/OTP <[email protected]> | 2015-12-20 16:29:08 +0100 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2015-12-20 16:29:08 +0100 |
commit | ea94882ee5ca148564e6940fde6d17e0417de9db (patch) | |
tree | 27dd683cf142071b0f3da6537239bc6711bf21f9 /lib/diameter/src/base/diameter_codec.erl | |
parent | 42493ad886f9b1b3e32e6f1bef084275a4480096 (diff) | |
parent | 502189ba42469d3332bc0658caa2bd0de1e3fcb9 (diff) | |
download | otp-ea94882ee5ca148564e6940fde6d17e0417de9db.tar.gz otp-ea94882ee5ca148564e6940fde6d17e0417de9db.tar.bz2 otp-ea94882ee5ca148564e6940fde6d17e0417de9db.zip |
Merge branch 'anders/diameter/M-bit/OTP-12947' into maint-17
* anders/diameter/M-bit/OTP-12947:
Add service_opt() strict_mbit
Diffstat (limited to 'lib/diameter/src/base/diameter_codec.erl')
-rw-r--r-- | lib/diameter/src/base/diameter_codec.erl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/diameter/src/base/diameter_codec.erl b/lib/diameter/src/base/diameter_codec.erl index f900bb0c5e..aab8b5887e 100644 --- a/lib/diameter/src/base/diameter_codec.erl +++ b/lib/diameter/src/base/diameter_codec.erl @@ -76,9 +76,10 @@ setopts(Opts) when is_list(Opts) -> lists:foreach(fun setopt/1, Opts). -%% Decode stringish types to string()? The default true is for -%% backwards compatibility. -setopt({string_decode = K, false = B}) -> +%% The default string_decode true is for backwards compatibility. +setopt({K, false = B}) + when K == string_decode; + K == strict_mbit -> setopt(K, B); %% Regard anything but the generated RFC 3588 dictionary as modern. @@ -96,7 +97,8 @@ setopt(Key, Value) -> getopt(Key) -> case get({diameter, Key}) of - undefined when Key == string_decode -> + undefined when Key == string_decode; + Key == strict_mbit -> true; undefined when Key == rfc -> 6733; |