X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax.js;h=0f799fcc8d230e44fbb01780f7c2442a9c592809;hb=ff08982508cb089d0b728cb797c76cc2fe76a702;hp=743857c1a07f6d9bcd313a77ca201b9c3ed6be9b;hpb=047debc750bd7ca15229297c1f3ab98527fe5be6;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 743857c..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