From 8b7434d8323a8191b3c19cf65d2c0138c447d96d Mon Sep 17 00:00:00 2001 From: Marcus Ramberg Date: Tue, 14 Dec 2004 23:23:58 +0000 Subject: [PATCH] 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 --- lib/Apache/MVC.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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{$_}); } -- 2.39.5