-
commit-queue@webkit.org authored
Reviewed by Darin Adler. Test for: EventSource fails to connect if Content-Type header has a charset attribute https://bugs.webkit.org/show_bug.cgi?id=45372 Test that a Content-Type of "text/event-stream; charset=UTF8" works correctly but "text/event-stream" does not work. * http/tests/eventsource/eventsource-content-type-charset-expected.txt: Added. * http/tests/eventsource/eventsource-content-type-charset.html: Added. * http/tests/eventsource/eventsource-content-type-text-event-stream-foobar-expected.txt: Added. * http/tests/eventsource/eventsource-content-type-text-event-stream-foobar.html: Added. * http/tests/eventsource/resources/response-content-type-charset.php: Added. * http/tests/eventsource/resources/response-content-type-event-stream-foobar.php: Added. 2010-12-14 Julien Chaffraix <jchaffraix@codeaurora.org> Reviewed by Darin Adler. Test for: EventSource fails to connect if Content-Type header has a charset attribute https://bugs.webkit.org/show_bug.cgi?id=45372 Tests: http/tests/eventsource/eventsource-content-type-charset.html http/tests/eventsource/eventsource-content-type-text-event-stream-foobar.html * page/EventSource.cpp: (WebCore::EventSource::didReceiveResponse): Use the mimeType instead of the Content-Type header directly. This makes the detection of the "text/stream" mimeType more accurate. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74011 268f45cc-cd09-0410-ab3c-d52691b4dbfc
42d83d41