From: Eric Wong Date: Tue, 2 Sep 2025 20:30:14 +0000 (+0000) Subject: reject_bots: avoid download prompts in Firefox X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=804322730c437434c3998dabae068d3c234dc818;p=thirdparty%2Fpublic-inbox.git 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/ --- 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);