Skip to content

I suspect that content-type should be case insensitive #183

Open

Description

@MichaelWehar

if (!this.getRequestHeader("Content-Type")) {

Currently, it appears that it assumes content-type is written as "Content-Type".

Activity

  1. MichaelWehar commented on Apr 20, 2020

    @MichaelWehar
    Author

    See here: https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2

    "Field names are case-insensitive."

  2. MythicManiac commented on May 27, 2020

    @MythicManiac

    I just hit a bug due to this, a client was setting content-type instead of the Content-Type that was being checked for, causing breakage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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