https://bugs.webkit.org/show_bug.cgi?id=75089
Access-Control-Request-Headers value should be lowercase
Source/WebCore:
Access-Control-Request-Headers is used when issuing a preflight request to let the server know
the HTTP headers that will be used when the actual request is made.
As per the W3C specification, Access-Control-Request-Headers value should be set in lowercase.
Patch by Joe Thomas <joethomas@motorola.com> on 2012-01-17
Reviewed by Alexey Proskuryakov.
Test: http/tests/xmlhttprequest/access-control-preflight-request-header-lowercase.html
* loader/CrossOriginAccessControl.cpp:
(WebCore::createAccessControlPreflightRequest): setting Access-Control-Request-Headers value to lowercase
LayoutTests:
Added test to verify that the Access-Control-Request-Headers value is sent in lowercase.
Patch by Joe Thomas <joethomas@motorola.com> on 2012-01-17
Reviewed by Alexey Proskuryakov.
* http/tests/xmlhttprequest/access-control-preflight-request-header-lowercase-expected.txt: Added.
* http/tests/xmlhttprequest/access-control-preflight-request-header-lowercase.html: Added.
* http/tests/xmlhttprequest/resources/access-control-preflight-request-header-lowercase.php: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105242
268f45cc-cd09-0410-ab3c-
d52691b4dbfc