From: Marcus Ramberg Date: Tue, 14 Dec 2004 23:23:58 +0000 (+0000) Subject: headers_in returns an APR table which acts like a hashref on apache2 X-Git-Tag: 2.10~49 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=8b7434d8323a8191b3c19cf65d2c0138c447d96d;p=maypole.git headers_in returns an APR table which acts like a hashref on apache2 git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@315 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/lib/Apache/MVC.pm b/lib/Apache/MVC.pm index ba0fec0..0ee09fa 100644 --- a/lib/Apache/MVC.pm +++ b/lib/Apache/MVC.pm @@ -31,7 +31,9 @@ sub parse_location { # Reconstruct the request headers $self->headers_in(Maypole::Headers->new); - my %headers = $self->{ar}->headers_in; + my %headers; + if (APACHE2) { %headers = %{$self->{ar}->headers_in}; + } else { %headers = $self->{ar}->headers_in; } for (keys %headers) { $self->headers_in->set($_, $headers{$_}); }