fix error on ruby2.0 using "Content-Encoding: gzip"