summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-07-09 17:19:05 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2010-07-09 17:19:05 +0100
commite180e09b035d9f92dac45b018e7ee31413c53093 (patch)
treec8cc8fb978c497d96775ec9e9a59f205f58b1063
parentd1c8a30c546c275e46b3de846bbe203e39ade609 (diff)
downloadrabbitmq-server-git-e180e09b035d9f92dac45b018e7ee31413c53093.tar.gz
put the 'none' check back into ensure_content_encoded
it's safer and more obviously correct that way
-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),