reitit

Eva O 2025-04-06T22:23:18.306209Z

The Ring resource handler has a bug. If the mime type cannot be found, it sets the content type to the empty string. This makes it difficult to use wrap-content-type on the result since it sees an existing header. I think the resource handler should only set the content type if a mime type has been found. Also it'd be nice if it took in a :mime-types parameter like wrap-content-type does so the extra middleware isn't needed

opqdonut 2025-04-07T05:07:44.921679Z

yeah, sounds like it could be improved

Eva O 2025-04-06T22:23:33.365839Z

I can send in a PR

Eva O 2025-04-08T00:36:48.996779Z

Done https://github.com/metosin/reitit/pull/733

opqdonut 2025-04-08T05:24:43.990139Z

shipit

opqdonut 2025-04-07T05:07:35.202679Z

thanks, that would be appreciated!