Skip to content

charset set in Content-Type when it shouldn't be #164

@geoffsmith82

Description

@geoffsmith82

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions