Skip serializing psgi streams when saving request

It can interfere with unit tests in some cases, like #2000
This commit is contained in:
Maxime Besson 2021-03-11 09:13:16 +01:00
parent b491ed6413
commit c0f8e8f46b

View File

@ -212,6 +212,8 @@ sub storeRequest {
my $info = {};
$info->{content} = $req->content;
foreach ( keys %{ $req->env } ) {
next if $_ eq "psgi.errors";
next if $_ eq "psgi.input";
$info->{$_} = $req->env->{$_} unless ( ref $req->env->{$_} );
}
return $self->_ott->createToken($info);