[WebSocket]The Sec-WebSocket-Accept MUST NOT appear more than once in an HTTP response
https://bugs.webkit.org/show_bug.cgi?id=81655
Patch by Li Yin <li.yin@intel.com> on 2012-03-21
Reviewed by Adam Barth.
Source/WebCore:
Test: http/tests/websocket/tests/hybi/handshake-fail-by-more-accept-header.html
* Modules/websockets/WebSocketHandshake.cpp:
(WebCore::WebSocketHandshake::readHTTPHeaders):
LayoutTests:
* http/tests/websocket/tests/hybi/handshake-fail-by-more-accept-header-expected.txt: Added.
* http/tests/websocket/tests/hybi/handshake-fail-by-more-accept-header.html: Added.
* http/tests/websocket/tests/hybi/handshake-fail-by-more-accept-header_wsh.py: Added.
(web_socket_do_extra_handshake):
(web_socket_transfer_data):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@111554
268f45cc-cd09-0410-ab3c-
d52691b4dbfc