[Webkit-unassigned] [Bug 26982] Use soup's content sniffing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 6 04:47:33 PDT 2009


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


Jan Alonzo <jmalonzo at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #32279|review?                     |review+
               Flag|                            |




--- Comment #3 from Jan Alonzo <jmalonzo at gmail.com>  2009-07-06 04:47:33 PDT ---
(From update of attachment 32279)
> -            , m_reportedHeaders(false)

Please don't forget to remove m_reportedHeaders decl too.

> +static void contentSniffedCallback(SoupMessage* msg, const char* sniffedType, GHashTable *params, gpointer data)
> +{
> +    if (sniffedType) {
> +        const char* officialType = soup_message_headers_get_one(msg->response_headers, "Content-Type");
> +
> +        if (!officialType || strcmp(officialType, sniffedType))
> +            soup_message_headers_set_content_type(msg->response_headers, sniffedType, params);
> +    }

Ok. r=me.

-- 
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