From: Mike Taylor Date: Wed, 26 Jun 2013 11:40:54 +0000 (+0200) Subject: Add debugging X-Git-Tag: 0.9.1~503 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=bad4149b187a33249e1648b9fcf344298989cba6;p=mkws-moved-to-github.git Add debugging --- diff --git a/etc/mod_perl/MyApache2/CopyCookie.pm b/etc/mod_perl/MyApache2/CopyCookie.pm index 2cdf24f..71c2919 100644 --- a/etc/mod_perl/MyApache2/CopyCookie.pm +++ b/etc/mod_perl/MyApache2/CopyCookie.pm @@ -9,8 +9,12 @@ use Apache2::Const -compile => qw(OK); sub handler { my $f = shift; - my $cookie = $f->r->headers_out->get('Set-Cookie'); - $f->r->headers_out->set('X-Set-Cookie', $cookie); + my $ho = $f->r->headers_out; + my $cookie = $ho->get('Set-Cookie'); + warn "MyApache2::CopyCookie headers_out='$ho', cookie='$cookie'"; + $ho->set('X-Set-Cookie', $cookie); + my $extra = $ho->get('X-Set-Cookie'); + warn "MyApache2::CopyCookie extra cookie='$extra'"; return Apache2::Const::OK; }