Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Images Using Wrong Content Type #4441

Open
wants to merge 3 commits into
base: mealie-next
Choose a base branch
from

Conversation

michael-genson
Copy link
Collaborator

What type of PR is this?

(REQUIRED)

  • bug

What this PR does / why we need it:

(REQUIRED)

When we used to use Caddy with the split containers, it used to do its own magic to serve the correct content type for images. Since we ditched the split container design we (probably inadvertently) switched to the "dev" media routes which don't specify content type.

This PR removes references to Caddy, unhides the "dev" media routes (because they actually get used), and explicitly adds the content type to said routes.

Which issue(s) this PR fixes:

(REQUIRED)

Fixes #3599
Fixes #4144

Testing

(fill-in or delete this section)

Tested locally. I struggled to test #3599 locally, but the error raised (before this fix) makes me pretty confident this is the issue:
ERROR Content-Type: text/plain; charset=utf-8 is not an image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] - Wrong content-type returned for webp images [BUG] - Recipe image from another mealie instance
2 participants