diff options
author | Andrei Fangli <andrei_fangli@outlook.com> | 2018-11-26 19:00:41 +0200 |
---|---|---|
committer | Timmy Willison <4timmywil@gmail.com> | 2018-11-26 12:00:41 -0500 |
commit | e0d941156900a6bff7c098c8ea7290528e468cf8 (patch) | |
tree | 5f0deeaf8fd98971364f57f66bd603e21326748f /test/data | |
parent | 3ac907864c4d36b4fcb58826d9cb0e4ed62334b2 (diff) | |
download | jquery-e0d941156900a6bff7c098c8ea7290528e468cf8.tar.gz jquery-e0d941156900a6bff7c098c8ea7290528e468cf8.zip |
Ajax: Fix getResponseHeader(key) for IE11
- getResponseHeader(key) combines all header values for the provided key into a
single result where values are concatenated by ', '. This does not happen for
IE11 since multiple values for the same header are returned on separate lines.
This makes the function only return the last value of the header for IE11.
- Updated ajax headers test to better cover Object.prototype collisions
Close gh-4173
Fixes gh-3403
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/mock.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/data/mock.php b/test/data/mock.php index 692c417e8..937e331bf 100644 --- a/test/data/mock.php +++ b/test/data/mock.php @@ -114,6 +114,9 @@ ok( true, "mock executed");'; header( 'Sample-Header: Hello World' ); header( 'Empty-Header: ' ); header( 'Sample-Header2: Hello World 2' ); + header( 'List-Header: Item 1' ); + header( 'list-header: Item 2' ); + header( 'constructor: prototype collision (constructor)' ); foreach ( explode( '|' , $req->query[ 'keys' ] ) as $key ) { // Only echo if key exists in the header |