From 7e91647ea774e6293026d5215fe65b75415d97a4 Mon Sep 17 00:00:00 2001
From: Eric Wong <e@80x24.org>
Date: Fri, 26 Feb 2016 01:57:55 +0000
Subject: [PATCH] extmsg: allow returning 404 responses

We will be falling back and cascading to newsgroup lookups, later.
---
 lib/PublicInbox/ExtMsg.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/PublicInbox/ExtMsg.pm b/lib/PublicInbox/ExtMsg.pm
index c6fc565a..09ee8d6e 100644
--- a/lib/PublicInbox/ExtMsg.pm
+++ b/lib/PublicInbox/ExtMsg.pm
@@ -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
-- 
2.51.0