Skip to content

"Content-Type" header with GET request #43

@domkck

Description

@domkck

Leaving the "Content-Type" header set for all requests (including GET which does not have any body) seems to confuse the Express.js router and a simple GET to /resource after a POST to /resource with 'Content-Type': 'application/json' returns 400.

Would it be right to remove the header for GET requests? If so I'll make a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions