Skip to content

when add --download flag , xh does not requests the compressed response body #346

@zuisong

Description

@zuisong

When using download mode, Httpie automatically requests the compressed response body, whereas xh doesn't. This means that xh will use more traffic to download the file.

xh:

❯ xh https://httpbin.org/gzip --offline -d
GET /gzip HTTP/1.1
Accept: */*
Accept-Encoding: identity
Connection: keep-alive
Host: httpbin.org
User-Agent: xh/0.20.1

httpie:

❯ http https://httpbin.org/gzip --offline -d
GET /gzip HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: httpbin.org
User-Agent: HTTPie/3.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions