Side navigation
#4063 closed bug (worksforme)
Opened February 04, 2009 03:58PM UTC
Closed February 28, 2009 07:52PM UTC
$.getJSON() does not call callback with 0-length content response
| Reported by: | dr_teeth | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3.2 |
| Component: | ajax | Version: | 1.3.1 |
| Keywords: | json | Cc: | |
| Blocked by: | Blocking: |
Description
I make a call to a REST service using $.getJSON(), which returns a 0-content-length response. The callback does not get called.
If I make the same call using $.get(), the callback does get called.
If this is intended behavior, please make a note of it in the documentation.
Attachments (0)
Change History (3)
Changed February 04, 2009 04:01PM UTC by comment:1
Changed February 05, 2009 12:51AM UTC by comment:2
Can you attach your test case? Here's now $.getJSON is implemented:
getJSON: function( url, data, callback ) {
return jQuery.get(url, data, callback, "json");
},
The test case will help clarify things.
Changed February 28, 2009 07:52PM UTC by comment:3
| resolution: | → worksforme |
|---|---|
| status: | new → closed |
Please reopen with a test case if the problem is still there.
In my test case, it did ''not'' use JSONP (URL is within same domain).