diff options
| author | Matthias Radestock <matthias@lshift.net> | 2009-08-09 01:43:13 +0100 |
|---|---|---|
| committer | Matthias Radestock <matthias@lshift.net> | 2009-08-09 01:43:13 +0100 |
| commit | 4783dbd5c8076380fd48b9499e3220edf192965f (patch) | |
| tree | 517c2cd25b2b287c4d52bb6b6d0d51678c01b292 | |
| parent | 9eab578b3af8c6e9fff0c50d6fa42d46a750aeef (diff) | |
| parent | 6ee16c0ca187c31fd994a2ef3e4800ffefe114b0 (diff) | |
| download | rabbitmq-server-git-4783dbd5c8076380fd48b9499e3220edf192965f.tar.gz | |
merge bug21335 into default
| -rw-r--r-- | src/rabbit_basic.erl | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/rabbit_basic.erl b/src/rabbit_basic.erl index 0f6aeb7ad7..4033aaafda 100644 --- a/src/rabbit_basic.erl +++ b/src/rabbit_basic.erl @@ -82,17 +82,13 @@ build_content(Properties, BodyBin) -> properties_bin = none, payload_fragments_rev = [BodyBin]}. -from_content(#content{properties = Props, - properties_bin = none, - payload_fragments_rev = BodyList}) -> - {Props, list_to_binary(BodyList)}; - -from_content(#content{properties = none, - properties_bin = PropsBin, - payload_fragments_rev = BodyList}) -> +from_content(Content) -> + #content{class_id = ClassId, + properties = Props, + payload_fragments_rev = FragmentsRev} = + rabbit_binary_parser:ensure_content_decoded(Content), {ClassId, _MethodId} = rabbit_framing:method_id('basic.publish'), - Props = rabbit_framing:decode_properties(ClassId, PropsBin), - {Props, list_to_binary(BodyList)}. + {Props, list_to_binary(lists:reverse(FragmentsRev))}. message(ExchangeName, RoutingKeyBin, RawProperties, BodyBin) -> Properties = properties(RawProperties), |
