File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,10 @@ var r20 = /%20/g,
42
42
ajaxLocation ,
43
43
44
44
// Document location segments
45
- ajaxLocParts ;
45
+ ajaxLocParts ,
46
+
47
+ // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
48
+ allTypes = [ "*/" ] + [ "*" ] ;
46
49
47
50
// #8138, IE may throw an exception when accessing
48
51
// a field from window.location if document.domain has been set
@@ -331,7 +334,7 @@ jQuery.extend({
331
334
html : "text/html" ,
332
335
text : "text/plain" ,
333
336
json : "application/json, text/javascript" ,
334
- "*" : "*/*"
337
+ "*" : allTypes
335
338
} ,
336
339
337
340
contents : {
@@ -702,7 +705,7 @@ jQuery.extend({
702
705
jqXHR . setRequestHeader (
703
706
"Accept" ,
704
707
s . dataTypes [ 0 ] && s . accepts [ s . dataTypes [ 0 ] ] ?
705
- s . accepts [ s . dataTypes [ 0 ] ] + ( s . dataTypes [ 0 ] !== "*" ? ", */* ; q=0.01" : "" ) :
708
+ s . accepts [ s . dataTypes [ 0 ] ] + ( s . dataTypes [ 0 ] !== "*" ? ", " + allTypes + " ; q=0.01" : "" ) :
706
709
s . accepts [ "*" ]
707
710
) ;
708
711
You can’t perform that action at this time.
0 commit comments