@@ -, +, @@ --- Koha/App/Plugin/CGIBinKoha.pm | 5 ++++- bin/koha.psgi | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) --- a/Koha/App/Plugin/CGIBinKoha.pm +++ a/Koha/App/Plugin/CGIBinKoha.pm @@ -54,8 +54,11 @@ sub register { sub _psgi_env { my ($self, $c) = @_; + my $env = $c->req->env; + my $body = $c->req->body; - my $env = { + $env = { + %$env, 'psgi.input' => IO::Scalar->new(\$body), 'psgi.errors' => *STDERR, REQUEST_METHOD => $c->req->method, --- a/bin/koha.psgi +++ a/bin/koha.psgi @@ -7,6 +7,8 @@ use Mojo::Server::PSGI; use Plack::Builder; builder { + enable '+Koha::Middleware::SetEnv'; + my $server = Mojo::Server::PSGI->new; $server->load_app("$FindBin::Bin/koha"); $server->to_psgi_app; --