Skip to main content

Bug Tracker

Side navigation

#11517 closed bug (invalid)

Opened March 26, 2012 10:52AM UTC

Closed March 26, 2012 11:16AM UTC

Incorrect case of Content-Type

Reported by: eldmannen+jquery@gmail.com 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".

Attachments (0)
Change History (1)

Changed March 26, 2012 11:16AM UTC by jaubourg comment:1

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