diff options
author | Dan Winship <danw@gnome.org> | 2011-12-04 14:56:01 +0100 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2011-12-04 14:56:01 +0100 |
commit | 3316324bafcc35616c57910003242c53cbf237aa (patch) | |
tree | 74621f164f7f784f08ab9d13ba669c7bd44d3ac9 | |
parent | c3f0763bcc42714b6c4f5fadf28baa9dd5466460 (diff) | |
download | libsoup-3316324bafcc35616c57910003242c53cbf237aa.tar.gz |
SoupContentDecoder: add another hack to the broken server hack
We were fixing up responses that mistakenly claimed "gzip"
Content-Encoding for gzipped files, but not responses that mistakenly
claimed "x-gzip" encoding.
-rw-r--r-- | libsoup/soup-content-decoder.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsoup/soup-content-decoder.c b/libsoup/soup-content-decoder.c index 21466125..e5a7125e 100644 --- a/libsoup/soup-content-decoder.c +++ b/libsoup/soup-content-decoder.c @@ -140,7 +140,8 @@ soup_content_decoder_got_headers_cb (SoupMessage *msg, SoupContentDecoder *decod return; /* Workaround for an apache bug (bgo 613361) */ - if (!g_ascii_strcasecmp (header, "gzip")) { + if (!g_ascii_strcasecmp (header, "gzip") || + !g_ascii_strcasecmp (header, "x-gzip")) { const char *content_type = soup_message_headers_get_content_type (msg->response_headers, NULL); if (content_type && |