Skip to content

Overriding header, doesn't override #16

@Skeen

Description

@Skeen

When overriding the 'Content-Type' in a controller, by doing;

        response.setHeader("Content-Type", "application/json");

It doesn't actually override, it just appends another header to the response;

        Content-Length:23
        Content-Type:application/json
        Content-Type:text/html

The browser thereby interprets everything as html.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions