summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrancesco Mazzoli <francesco@rabbitmq.com>2012-04-03 16:05:24 +0100
committerFrancesco Mazzoli <francesco@rabbitmq.com>2012-04-03 16:05:24 +0100
commiteb417fee83596c5ad26ab6190b677c9d41ed3675 (patch)
tree21d1184f2f0af1df87515a2d8e9a76ba2c32db97 /src
parentec02cf0fd0dd40d213e14bfb2928f6c5ddf258c7 (diff)
downloadrabbitmq-server-git-eb417fee83596c5ad26ab6190b677c9d41ed3675.tar.gz
Fix in map_headers.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_basic.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_basic.erl b/src/rabbit_basic.erl
index 1718a420bf..cc876cb4e4 100644
--- a/src/rabbit_basic.erl
+++ b/src/rabbit_basic.erl
@@ -187,11 +187,11 @@ append_table_header(Name, Info, Headers) ->
rabbit_misc:set_table_value(Headers, Name, array, [{table, Info} | Prior]).
map_headers(F, Content) ->
- Content = rabbit_binary_parser:ensure_content_decoded(Content),
- #content{properties = #'P_basic'{headers = Headers} = Props} = Content,
+ Content1 = rabbit_binary_parser:ensure_content_decoded(Content),
+ #content{properties = #'P_basic'{headers = Headers} = Props} = Content1,
Headers1 = F(Headers),
rabbit_binary_generator:clear_encoded_content(
- Content#content{properties = Props#'P_basic'{headers = Headers1}}).
+ Content1#content{properties = Props#'P_basic'{headers = Headers1}}).
indexof(L, Element) -> indexof(L, Element, 1).