aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-05-13 21:39:56 +0200
committerGitHub <noreply@github.com>2019-05-13 21:39:56 +0200
commit3527a3840585e6a359cd712591c9c57398357b9b (patch)
tree41446f392d9a8984e31297df3252d1b538f4191e /src/ajax.js
parentccbd6b93424cbdbf86f07a86c2e55cbab497d7a3 (diff)
downloadjquery-3527a3840585e6a359cd712591c9c57398357b9b.tar.gz
jquery-3527a3840585e6a359cd712591c9c57398357b9b.zip
Core: Remove IE-specific support tests, rely on document.documentMode
Also, update some tests to IE-sniff when deciding whether to skip a test. Fixes gh-4386 Closes gh-4387
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 9db26f66c..31880032d 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -458,6 +458,12 @@ jQuery.extend( {
if ( !responseHeaders ) {
responseHeaders = {};
while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
+
+ // Support: IE 11+
+ // `getResponseHeader( key )` in IE doesn't combine all header
+ // values for the provided key into a single result with values
+ // joined by commas as other browsers do. Instead, it returns
+ // them on separate lines.
responseHeaders[ match[ 1 ].toLowerCase() + " " ] =
( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] )
.concat( match[ 2 ] );