Skip to content

[BUG] http_compress error with python 2.7.x #789

@hysia

Description

@hysia

https://github.com/elastic/elasticsearch-py/blob/master/elasticsearch/connection/http_urllib3.py#L164

gzip.compress() is not correct in python2.7 use gzip.zlib.compress() instead otherwise it will throw an error object has no attribute "compress"

C0NTN8.md.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions