diff options
author | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-04-03 16:05:24 +0100 |
---|---|---|
committer | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-04-03 16:05:24 +0100 |
commit | 1fe82ee9b57658fe2861144da9eb0e219da616e4 (patch) | |
tree | 21d1184f2f0af1df87515a2d8e9a76ba2c32db97 | |
parent | 05122f0ef6236f58c04fc366d4a75ac60a8850f0 (diff) | |
download | rabbitmq-server-1fe82ee9b57658fe2861144da9eb0e219da616e4.tar.gz |
Fix in map_headers.
-rw-r--r-- | src/rabbit_basic.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_basic.erl b/src/rabbit_basic.erl index 1718a420..cc876cb4 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). |