Ticket #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: | ||
| Blocking: | Blocked by: |
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
Change History
comment:1 Changed 2 years ago by danheberden
- Priority changed from undecided to low
- Status changed from new to open
- Component changed from unfiled to ajax
- Milestone changed from 1.next to 1.5.1
comment:2 Changed 2 years ago by danheberden
- Status changed from open to closed
- Resolution set to invalid
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?
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
