ring-clojure / ring

Clojure HTTP server abstraction
MIT License
3.75k stars 519 forks source link

Use font/ttf MIME type for ttf #426

Closed nivekuil closed 3 years ago

nivekuil commented 3 years ago

Parallels https://github.com/ring-clojure/ring/pull/421 and follows up https://github.com/ring-clojure/ring/pull/32. I believe this is the correct type, following the same logic as #421 and looking at https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types. I noticed this because Cloudflare wasn't compressing my .ttfs (although it turned out for the better as I was reminded about upgrading them with woff2_compress)

weavejester commented 3 years ago

Thanks for the patch. Could you change the commit message to:

Change TTF media type to "font/ttf"

See: https://www.iana.org/assignments/media-types/media-types.txt
nivekuil commented 3 years ago

TIL. changed

On 5 December 2020 10:42, James Reeves notifications@github.com wrote:

Thanks for the patch. Could you change the commit message to:

Change TTF media type to "font/ttf"

See: https://www.iana.org/assignments/media-types/media-types.txt