Skip to content

Why should we always have Content-Type been set ? #1276

@towerhe

Description

@towerhe

The codes I found in Body.java

if (httpResponse.getContentType() == null) {
    httpResponse.setContentType("text/html; charset=utf-8");
}

If the body is set to null, I think Content-Type should not be set.

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