Bug Tracker

Opened 12 years ago

Closed 12 years ago

#8113 closed bug (invalid)

jQuery.get/post calls jQuery.ajax with lowercase method name

Reported by: john.firebaugh Owned by:
Priority: low Milestone: 1.5.1
Component: ajax Version: 1.5
Keywords: Cc:
Blocked by: Blocking:


In previous versions, both used the uppercase method name. The change is breaking one of my application test cases and has the potential to break plugins that override/wrap $.ajax.

XMLHttpRequest.open is specified in such a way that lowercase "get" and "post" will work, but the standards suggest that "GET" and "POST" are preferred, and Postrel's law applies here.

http://www.w3.org/TR/XMLHttpRequest/#the-open-method http://tools.ietf.org/html/rfc2616#section-5.1.1

Change History (2)

comment:1 Changed 12 years ago by danheberden

Component: unfiledajax
Milestone: 1.next1.5.1
Priority: undecidedlow
Status: newopen

comment:2 Changed 12 years ago by danheberden

Resolution: invalid
Status: openclosed

Look what i found: https://github.com/jquery/jquery/blob/master/src/ajax.js#L577 - seems its already doing that :) The issue must be in your wrapper/override, ya?

Note: See TracTickets for help on using tickets.