-
-
Notifications
You must be signed in to change notification settings - Fork 375
Closed
Labels
Milestone
Description
In MVCFramework.Router.pas when the MVCProduces attribute is not set on a Controller method but the Content-Type field is used to set it, the charset is set to utf-8 even for binary types .. ie.
Content-Type: application/zip; charset=utf8
I eventually found that setting
Config[TMVCConfigKey.DefaultContentCharset] := '';
solved my problem, but it was not obvious that is was the solution. Could it be changed so that the charset is accessible to be set like the Content-Type is and/or charset is cleared when the Content-Type is set.