Skip to content

Commit

Permalink
force scalar context for ->header
Browse files Browse the repository at this point in the history
  • Loading branch information
leedo committed Nov 6, 2012
1 parent 4bed912 commit 0ce501b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Plack/App/Proxy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ sub build_headers_from_env {
$headers->remove_header("Host") unless $self->preserve_host_header;
$self->filter_headers( $headers );

+{ map {$_ => $headers->header($_) } $headers->header_field_names };
+{ map {$_ => scalar $headers->header($_) } $headers->header_field_names };
}

sub call {
Expand Down

0 comments on commit 0ce501b

Please sign in to comment.