Cannot control charset in ContentType header #567
Labels
area:core
Issue with EmbedIO core (server, modules, etc.)
area:files
Issue with FileModule and/or file providers
breaking
Requires one or more breaking changes.
enhancement
pinned
Pinned issues are not closed automatically when stale.
v3.x
With the unreleased v3.5.0, it is now possible to remove the
charset=utf-8
part in thecontent-type
header by settingContentEncoding
tonull
.However, when using
FileModule
to serve static files, there doesn't seem to be a way to set this.Actually, I believe for mime types that are not for text,
charset
is not needed at all. Therefore, I would propose setContentEncoding
tonull
inFileModule
, then add a whitelist (customizable) for those that need it.The text was updated successfully, but these errors were encountered: