From 804322730c437434c3998dabae068d3c234dc818 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 2 Sep 2025 20:30:14 +0000 Subject: [PATCH] reject_bots: avoid download prompts in Firefox Apparently, some versions of Firefox will open a download prompt when attempting to open the page without a Content-Type. So set a Content-Type and keep those installations and users of Firefox happy. Reported-by: Leah Neukirchen Link: https://public-inbox.org/meta/878qiwriq7.fsf@vuxu.org/ --- contrib/RejectBots.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/RejectBots.pm b/contrib/RejectBots.pm index 3bd01c840..81c574c06 100644 --- a/contrib/RejectBots.pm +++ b/contrib/RejectBots.pm @@ -31,7 +31,7 @@ sub call { my $body = < 1, + [ 200, [ 'Refresh' => 1, 'Content-Type' => 'text/plain', 'Content-Length' => length($body) ], [ $body ] ] } else { $self->app->($env); -- 2.47.3