Reformat Perl code.
[mkws-moved-to-github.git] / etc / mod_perl / MyApache2 / CopyCookie.pm
1 package MyApache2::CopyCookie;
2
3 use Apache2::Filter ();
4 use Apache2::RequestRec ();
5 use APR::Table ();
6
7 use Apache2::Const -compile => qw(OK);
8
9 sub handler {
10     my $f = shift;
11
12     my $cookie = $f->r->headers_out->get('Set-Cookie');
13     $f->r->headers_out->set('X-Set-Cookie', $cookie);
14     return Apache2::Const::OK;
15 }
16
17 1;