summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_binary_generator.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rabbit_binary_generator.erl b/src/rabbit_binary_generator.erl
index e2c567106f..07f25c15c0 100644
--- a/src/rabbit_binary_generator.erl
+++ b/src/rabbit_binary_generator.erl
@@ -292,7 +292,9 @@ check_empty_content_body_frame_size() ->
ComputedSize, ?EMPTY_CONTENT_BODY_FRAME_SIZE})
end.
-ensure_content_encoded(Content = #content{protocol = Protocol}, Protocol) ->
+ensure_content_encoded(Content = #content{properties_bin = PropsBin,
+ protocol = Protocol}, Protocol)
+ when PropsBin =/= 'none' ->
Content;
ensure_content_encoded(Content = #content{properties = Props}, Protocol) ->
Content#content{properties_bin = Protocol:encode_properties(Props),