[Webkit-unassigned] [Bug 115354] New: Disable HTTP request "Accept-Encoding:" header field on gstreamer source element to avoid receiving the wrong size when retrieving data

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 29 07:57:26 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=115354

           Summary: Disable HTTP request "Accept-Encoding:" header field
                    on gstreamer source element to avoid receiving the
                    wrong size when retrieving data
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: andrunko at gmail.com


The default value for the HTTP "Accept-Encoding:" header field in the request allows compressed data to be received on requests.
While this works fine for most cases, it can break the webkit source that needs to rely on the the proper data size when receiving the response (even though the received data is already uncompressed the size reported in ResourceResponse::expectedContentLength() is the same represented by the HTTP header field "Content-Length" which is the size of the compressed data).

We should disable the HTTP "Accept-Encoding:" header field when using the request as we don't want the received response to be encoded in any way, as we need to rely on the proper size of the returned data on ResourceHandle::didReceiveResponse().

Patch to follow.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list