desktop
desktop copied to clipboard
[Bug]: gzip compression unsupported
What happened?
Currently, gzip compressed responses show up in httpie Desktop as <binary data>. This is very limiting, especially since some APIs compress all responses by default, making interacting with them using the httpie Desktop impossible.
Steps to reproduce?
1. Launch the app.
2. Make a `GET` request to `https://httpbin.org/gzip`
3. See `<binary data>` in the response tab
What did you expect to happen?
I expected to see actual text of the response. httpie CLI works just fine:
$ http GET https://httpbin.org/gzip
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 216
Content-Type: application/json
Date: Fri, 19 Jan 2024 14:54:05 GMT
Server: gunicorn/19.9.0
{
"gzipped": true,
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Host": "httpbin.org",
"User-Agent": "HTTPie/3.2.2",
"X-Amzn-Trace-Id": "Root=1-65aa8d0d-302edcec1dc18c1a31aca4e2"
},
"method": "GET",
"origin": "213.30.232.122"
}
Platform
macOS
HTTPie Desktop version
2024.1.2
Relevant log output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Do you know if there's any plans to support this any time soon?