Skip to main content

Bug Tracker

Side navigation

#8113 closed bug (invalid)

Opened February 01, 2011 03:19AM UTC

Closed February 01, 2011 07:54AM UTC

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:
Description

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

Attachments (0)
Change History (2)

Changed February 01, 2011 05:18AM UTC by danheberden comment:1

component: unfiledajax
milestone: 1.next1.5.1
priority: undecidedlow
status: newopen

Changed February 01, 2011 07:54AM UTC by danheberden comment:2

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?