[EFL][GTK] List value response headers are not handled in RespourceResponse (libsoup...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2012 17:44:40 +0000 (17:44 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2012 17:44:40 +0000 (17:44 +0000)
commit74194af616dd3ca481b059132d1ce375aed32953
treee41fabd1c4b5a3107a362358a2eae45d873c92b0
parent211de00c2f36af5d34bc7b85fbaabdda2dc09351
[EFL][GTK] List value response headers are not handled in RespourceResponse (libsoup specific)
https://bugs.webkit.org/show_bug.cgi?id=95181

Patch by Alexander Shalamov <alexander.shalamov@intel.com> on 2012-12-05
Reviewed by Martin Robinson.

Source/WebCore:

When list-value response headers are received, they are handled as single
value headers. This patch fixes incorrect behavior. New test was added to
verify list-value header handling.

Test: http/tests/xmlhttprequest/xmlhttprequest-test-custom-headers.html

* platform/network/soup/ResourceResponseSoup.cpp:
(WebCore::ResourceResponse::updateFromSoupMessage):

LayoutTests:

Added test that checks if list-value response headers handled correctly.

* http/tests/xmlhttprequest/resources/custom-headers.php: Added.
* http/tests/xmlhttprequest/xmlhttprequest-test-custom-headers-expected.txt: Added.
* http/tests/xmlhttprequest/xmlhttprequest-test-custom-headers.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136705 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/xmlhttprequest/resources/custom-headers.php [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-test-custom-headers-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-test-custom-headers.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/network/soup/ResourceResponseSoup.cpp