View | Details | Raw Unified | Return to bug 20582
Collapse All | Expand All

(-)a/Koha/App/Plugin/CGIBinKoha.pm (-1 / +4 lines)
Lines 54-61 sub register { Link Here
54
sub _psgi_env {
54
sub _psgi_env {
55
    my ($self, $c) = @_;
55
    my ($self, $c) = @_;
56
56
57
    my $env = $c->req->env;
58
57
    my $body = $c->req->body;
59
    my $body = $c->req->body;
58
    my $env = {
60
    $env = {
61
        %$env,
59
        'psgi.input' => IO::Scalar->new(\$body),
62
        'psgi.input' => IO::Scalar->new(\$body),
60
        'psgi.errors' => *STDERR,
63
        'psgi.errors' => *STDERR,
61
        REQUEST_METHOD => $c->req->method,
64
        REQUEST_METHOD => $c->req->method,
(-)a/bin/koha.psgi (-1 / +2 lines)
Lines 7-12 use Mojo::Server::PSGI; Link Here
7
use Plack::Builder;
7
use Plack::Builder;
8
8
9
builder {
9
builder {
10
    enable '+Koha::Middleware::SetEnv';
11
10
    my $server = Mojo::Server::PSGI->new;
12
    my $server = Mojo::Server::PSGI->new;
11
    $server->load_app("$FindBin::Bin/koha");
13
    $server->load_app("$FindBin::Bin/koha");
12
    $server->to_psgi_app;
14
    $server->to_psgi_app;
13
- 

Return to bug 20582