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 <leah@vuxu.org>
Link: https://public-inbox.org/meta/878qiwriq7.fsf@vuxu.org/
my $body = <<EOM;
Requiring persistent connection to access: $uri ...
EOM
- [ 200, [ 'Refresh' => 1,
+ [ 200, [ 'Refresh' => 1, 'Content-Type' => 'text/plain',
'Content-Length' => length($body) ], [ $body ] ]
} else {
$self->app->($env);