Handle "Content-Encoding: x-gzip" as well as gzip
authorDan Winship <danw@gnome.org>
Mon, 1 Mar 2010 14:00:20 +0000 (09:00 -0500)
committerDan Winship <danw@gnome.org>
Mon, 1 Mar 2010 14:00:20 +0000 (09:00 -0500)
1999 called, they wanted to explain the meaning of the word
"deprecated" to you.

https://bugzilla.gnome.org/show_bug.cgi?id=611476

libsoup/soup-content-decoder.c

index 5ebcff6..a460c50 100644 (file)
@@ -76,6 +76,8 @@ soup_content_decoder_init (SoupContentDecoder *decoder)
        /* Hardcoded for now */
        g_hash_table_insert (decoder->priv->codings, "gzip",
                             GSIZE_TO_POINTER (SOUP_TYPE_CODING_GZIP));
+       g_hash_table_insert (decoder->priv->codings, "x-gzip",
+                            GSIZE_TO_POINTER (SOUP_TYPE_CODING_GZIP));
 }
 
 static void