Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery.extend({
- _httpData: jQuery.httpData,
- httpData: function (xhr, type, s) {
- var ct = xhr.getResponseHeader("content-type") || "";
- type = type && type === 'script' && ct.indexOf("json") >= 0 ? 'json' : type;
- return jQuery._httpData(xhr, type, s);
- }
- });
Add Comment
Please, Sign In to add comment