Decode gzip content before handling raw data (bug 1023490)

https://bugzilla.mozilla.org/show_bug.cgi?id=1023490

If anyone has any idea how we should test that... AFAIK we are mocking all requests calls to prevent external connections in tests...