]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/GitHTTPBackend.pm
qspawn: use fallback response code from CGI program
[public-inbox.git] / lib / PublicInbox / GitHTTPBackend.pm
index 5b879871bbb1d7c9b732b087d88b639526fb64c9..744324294917df02bd07166a8d4e9423714b871d 100644 (file)
@@ -151,6 +151,7 @@ sub parse_cgi_headers { # {parse_hdr} for Qspawn
        if ($code == 404 && $ctx->{www} && !$ctx->{_coderepo_tried}++) {
                my $wcb = delete $ctx->{env}->{'qspawn.wcb'};
                $ctx->{env}->{'plack.skip-deflater'} = 1; # prevent 2x gzip
+               $ctx->{env}->{'qspawn.fallback'} = $code;
                my $res = $ctx->{www}->coderepo->srv($ctx);
                # for ->psgi_return_init_cb
                $ctx->{env}->{'qspawn.wcb'} = $wcb;