Skip to main content

max / makenotwork

Serve the OFL licence text as text/plain, not octet-stream d704e985 shipped OFL-*.txt beside every self-hosted face and content_type_for never learned .txt, so the three licence files were served as application/octet-stream. every_embedded_asset_has_a_known_content_type is the assertion that catches exactly this; nothing had run multithreaded's tests since.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-08-19 23:21 UTC
Signed with PGP, not checked
Commit: 1ede82f6cb65bc7c8cb4ebc66d4c02bb145954f7
Parent: adf56cd
1 file changed, +4 insertions, -0 deletions
@@ -88,6 +88,10 @@
88 88 Some("map") => "application/json; charset=utf-8",
89 89 Some("woff2") => "font/woff2",
90 90 Some("ttf") => "font/ttf",
91 + // The OFL text shipped beside each self-hosted face. Served so the
92 + // licence a visitor is pointed at is readable in a browser rather than
93 + // downloaded as an opaque blob.
94 + Some("txt") => "text/plain; charset=utf-8",
91 95 _ => "application/octet-stream",
92 96 }
93 97 }