X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fajax.js;h=0f799fcc8d230e44fbb01780f7c2442a9c592809;hb=6c81082a6b20880cbd5d35ec5c50d4270f3af2ce;hp=8bf4a501f5741e05389b66fc06e22a05c08c29f0;hpb=5974495e6b1f40076ef257bc886dacd0c2e27bd7;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 8bf4a50..0f799fc 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -153,7 +153,7 @@ jQuery.extend({ script: "text/javascript, application/javascript", json: "application/json, text/javascript", text: "text/plain", - default: "*/*" + _default: "*/*" } }, @@ -287,7 +287,7 @@ jQuery.extend({ // Set the Accepts header for the server, depending on the dataType xml.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ? s.accepts[ s.dataType ] + ", */*" : - s.accepts.default ); + s.accepts._default ); } catch(e){} // Allow custom headers/mimetypes