aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-10-12 19:56:46 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-10-12 22:38:15 +0300
commit239169bb2ede6ea6287d82d1d13b0c354f451749 (patch)
tree01acc8013b0446a96f05076657bfc5e3babcb0ba /src/ajax.js
parentcb087ce41daa5db4c8db10e586bdc141f953d93d (diff)
downloadjquery-239169bb2ede6ea6287d82d1d13b0c354f451749.tar.gz
jquery-239169bb2ede6ea6287d82d1d13b0c354f451749.zip
Ajax: improve content-type detection
Fixes gh-2584 Closes gh-2643
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 157934ef1..efc413650 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -322,9 +322,9 @@ jQuery.extend( {
},
contents: {
- xml: /xml/,
- html: /html/,
- json: /json/
+ xml: /\bxml\b/,
+ html: /\bhtml/,
+ json: /\bjson\b/
},
responseFields: {