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

Add mime.types to docker container to select charset properly #547

Merged
merged 4 commits into from
May 19, 2023

Conversation

snowphone
Copy link
Contributor

@snowphone snowphone commented Apr 29, 2023

This commit includes /etc/mime.types file to the container, which is necessary to properly select the charset using MIME typing during file upload.

For more information, read #545 (comment)

To test the PR, I built this image, ran this image on my server, and uploaded greeting.txt, which includes CJK letters.

Add charset to content type in the getHandler function to fix CJK-letter related issues.
If the content type is empty after trimming, set it to "text/plain; charset=utf-8".
This commit includes /etc/mime.types file to the container, which is necessary to properly select the charset using MIME typing during file upload.

For more information, read dutchcoders#545 (comment)
@aspacca aspacca merged commit 2a11ca1 into dutchcoders:main May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants