Commit da3d8951 authored by kov@webkit.org's avatar kov@webkit.org

2009-05-18 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>

        Reviewed by Jan Alonzo.

        https://bugs.webkit.org/show_bug.cgi?id=25854
        [GTK] Should tell servers we only support identity as content encoding

        Let servers know we only support identity as content
        encoding. We will implement this in libsoup.

        * platform/network/soup/ResourceHandleSoup.cpp:
        (WebCore::ResourceHandle::startHttp):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 86b10985
2009-05-18 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
Reviewed by Jan Alonzo.
https://bugs.webkit.org/show_bug.cgi?id=25854
[GTK] Should tell servers we only support identity as content encoding
Let servers know we only support identity as content
encoding. We will implement this in libsoup.
* platform/network/soup/ResourceHandleSoup.cpp:
(WebCore::ResourceHandle::startHttp):
2009-05-18 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Darin Adler.
......@@ -551,6 +551,11 @@ bool ResourceHandle::startHttp(String urlString)
// balanced by a deref() in finishedCallback, which should always run
ref();
// FIXME: For now, we cannot accept content encoded in anything
// other than identity, so force servers to do it our way. When
// libsoup gets proper Content-Encoding support we will want to
// use it here instead.
soup_message_headers_replace(d->m_msg->request_headers, "Accept-Encoding", "identity;q=1, *;q=0");
soup_session_queue_message(session, d->m_msg, finishedCallback, this);
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment