Bug Tracker

Opened 12 years ago

Closed 12 years ago

#11517 closed bug (invalid)

Incorrect case of Content-Type

Reported by: eldmannen+jquery@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

Description

Line 7840:

ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );

The capitalization in the RFC is "Content-Type".

Change History (1)

comment:1 Changed 12 years ago by jaubourg

Resolution: invalid
Status: newclosed

Header names are case insensitive: http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2

The implementation of jqXHR.getResponseHeader makes sure of this: https://github.com/jquery/jquery/blob/master/src/ajax.js#L450

Note: See TracTickets for help on using tickets.