Correction that should be: $self->query->env->{$header} > so a possible patch would look something like: ... > my $header_value = $self->{__IS_PSGI} ? $self->env->{$header} : $ENV{$header}; ...