[libanyevent-rabbitmq-perl] 74/151: Set things we dont know to undef instead of to an empty string in the content header.

Damyan Ivanov dmn at moszumanska.debian.org
Thu Jan 16 11:03:05 UTC 2014


This is an automated email from the git hooks/post-receive script.

dmn pushed a commit to annotated tag debian/1.12-1
in repository libanyevent-rabbitmq-perl.

commit fcdf648f6aeebb5e4f8ca9959ccdef23c3fdcb80
Author: Johannes Plunien <johannes.plunien at xing.com>
Date:   Thu Mar 10 09:32:50 2011 +0100

    Set things we dont know to undef instead of to an empty string in the content header.
---
 lib/AnyEvent/RabbitMQ/Channel.pm | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/lib/AnyEvent/RabbitMQ/Channel.pm b/lib/AnyEvent/RabbitMQ/Channel.pm
index 262d6f5..867a14b 100644
--- a/lib/AnyEvent/RabbitMQ/Channel.pm
+++ b/lib/AnyEvent/RabbitMQ/Channel.pm
@@ -320,18 +320,18 @@ sub _header {
             body_size    => length($body),
             header_frame => Net::AMQP::Protocol::Basic::ContentHeader->new(
                 content_type     => 'application/octet-stream',
-                content_encoding => '',
+                content_encoding => undef,
                 headers          => {},
                 delivery_mode    => 1,
                 priority         => 1,
-                correlation_id   => '',
-                expiration       => '',
-                message_id       => '',
+                correlation_id   => undef,
+                expiration       => undef,
+                message_id       => undef,
                 timestamp        => time,
-                type             => '',
-                user_id          => '',
-                app_id           => '',
-                cluster_id       => '',
+                type             => undef,
+                user_id          => undef,
+                app_id           => undef,
+                cluster_id       => undef,
                 %$args,
             ),
         ),

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libanyevent-rabbitmq-perl.git



More information about the Pkg-perl-cvs-commits mailing list