Page MenuHomePhabricator

Force text/plain mime type for logs
Open, Needs TriagePublicBUG REPORT

Description

Occasionally when trying to view channel logs they are downloaded by the browser.

I assume this is due to some encoding in the file which prevents the mime detection from picking plain text.

Having the files force downloaded makes for a very bad experience, especially when looking at "incremental logs" i.e the current day

Random example from now (seen in other channels across different days before): https://wm-bot.wmcloud.org/logs/%23wikimedia-cloud-feed/20251108.txt

Having the web server force plain/text should allow the logs to be viewed within the browser with no real side effects

Event Timeline

DamianZaremba renamed this task from For text/plain mine type to For text/plain mime type for logs.Nov 9 2025, 12:13 AM
DamianZaremba renamed this task from For text/plain mime type for logs to Force text/plain mime type for logs.Nov 9 2025, 12:17 AM