[libsoup] Handle "Content-Encoding: x-gzip" as well as gzip



commit 4e940891747bf26ff6cf945653d6710962de2867
Author: Dan Winship <danw gnome org>
Date:   Mon Mar 1 09:00:20 2010 -0500

    Handle "Content-Encoding: x-gzip" as well as gzip
    
    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 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-content-decoder.c b/libsoup/soup-content-decoder.c
index 5ebcff6..a460c50 100644
--- a/libsoup/soup-content-decoder.c
+++ b/libsoup/soup-content-decoder.c
@@ -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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]