support compressed contents

Bug #1181526 reported by Marcos Dione
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lalita
New
Undecided
Unassigned

Bug Description

webservers are returning pages precompressed. lalita reports such pages as compressed/x-gzip or similar

Revision history for this message
Marcos Dione (mdione) wrote :

14:26 < StucKman> facundobatista: eras vos el del problema de content encoding ?
14:26 < StucKman> digo, cuando el webserver te responde con los datos gzipeados
14:27 < facundobatista> StucKman, ya lo resolví, mi problema era con la api de Python :/
14:27 < StucKman> facundobatista: contame, capá arreglo un poco lalita
14:28 < facundobatista> StucKman, yo tenía los datos ya leidos, y el header me decía "gzip", entonces quería pasárselos al módulo gzip
14:28 < facundobatista> StucKman, pero el módulo gzip sólo tiene algo que acepta un archivo, o un archivo-like-object, y yo tenía los datos, y me daba fiaca meterlo en un strinio
14:28 < facundobatista> *StringIO
14:29 < facundobatista> StucKman, y leyendo la doc, vi que decía que gzip es "zlib based", entonces, me tiré a descomprimirlo con zlib
14:29 < facundobatista> fallaba
14:29 < facundobatista> pero con gzip funcó
14:29 < facundobatista> GzipFile(StringIO(data))

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.