Skip to content
Snippets Groups Projects
Unverified Commit 2a11ca13 authored by Junoh Moon's avatar Junoh Moon Committed by GitHub
Browse files

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

* Add charset to content type in getHandler

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".

* Add mailcap and mime.types to transfer.sh container

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 https://github.com/dutchcoders/transfer.sh/pull/545#issuecomment-1528712181



---------

Co-authored-by: default avatarAndrea Spacca <andrea.spacca@gmail.com>
parent 1e6346c3
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment