Skip serializing psgi streams when saving request

It can interfere with unit tests in some cases, like #2000
2620-ppolicy-binding
Maxime Besson 4 years ago
parent b491ed6413
commit c0f8e8f46b
  1. 2
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Issuer.pm

@ -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);

Loading…
Cancel
Save