From e0d941156900a6bff7c098c8ea7290528e468cf8 Mon Sep 17 00:00:00 2001 From: Andrei Fangli Date: Mon, 26 Nov 2018 19:00:41 +0200 Subject: 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 --- test/data/mock.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/data') 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 -- cgit v1.2.3