]> Sergey Matveev's repositories - public-inbox.git/commitdiff
extmsg: allow returning 404 responses
authorEric Wong <e@80x24.org>
Fri, 26 Feb 2016 01:57:55 +0000 (01:57 +0000)
committerEric Wong <e@80x24.org>
Fri, 26 Feb 2016 02:18:52 +0000 (02:18 +0000)
We will be falling back and cascading to newsgroup lookups, later.

lib/PublicInbox/ExtMsg.pm

index c6fc565a0eef6c22c4bf855d64e33485f9531724..09ee8d6e3bf98db16874e27c5bf7fee1a310b69d 100644 (file)
@@ -147,7 +147,7 @@ again:
        }
        $s .= '</pre></body></html>';
 
-       [300, ['Content-Type'=>'text/html; charset=UTF-8'], [$s]];
+       [$code, ['Content-Type'=>'text/html; charset=UTF-8'], [$s]];
 }
 
 # Redirect to another public-inbox which is mapped by $pi_config