GNOME Bugzilla – Bug 666623
Add gzip encoding support
Last modified: 2014-08-24 16:17:08 UTC
Apparently all of the Google APIs support gzip encoding of responses if we set the appropriate request headers. http://googleappsdeveloper.blogspot.com/2011/12/optimizing-bandwidth-usage-with-gzip.html
Created attachment 284351 [details] [review] core: Add gzip encoding support libsoup already transparently supported gzip encoding of data from the server, using SoupContentDecoder, which is present by default in a SoupSession. We were correctly sending the Accept-Encoding header, but Google also require that the string ‘gzip’ be present in the User-Agent header to enable gzip support. Add a User-Agent header which supports this.
This was pleasingly simple to implement! Attachment 284351 [details] pushed as 6e89b03 - core: Add gzip encoding support