Skip to content

Commit 8a49ce5

Browse files
committed
Ensure durable is a boolean
Prevent key 'durable' with value 'undefined' being added to the mc annotations, for example when the durable field was not set, but another AMQP 1.0 header field was set.
1 parent 960159a commit 8a49ce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit/src/mc_amqp.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ routing_headers(Msg, Opts) ->
112112
get_property(durable, Msg) ->
113113
case Msg of
114114
#msg{header = #'v1_0.header'{durable = Durable}}
115-
when is_atom(Durable) ->
115+
when is_boolean(Durable) ->
116116
Durable;
117117
#msg{header = #'v1_0.header'{durable = {boolean, Durable}}} ->
118118
Durable;

0 commit comments

Comments
 (0)