mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #4791] [CLOSED] fix: gzip not been able to decode #4935
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4935
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/4791
Author: @xTudoS
Created: 2/27/2025
Status: ❌ Closed
Base:
patch← Head:fix/gzip-content-decode📝 Commits (3)
ad4ed95fix: gzip not been able to decode6f98db8set identity as default accept-encoding6c4a1d2removed fallback, as an api test tool i want to send only the headers I set📊 Changes
2 files changed (+109 additions, -0 deletions)
View changed files
📝
packages/hoppscotch-relay/src/lib.rs(+66 -0)📝
packages/hoppscotch-relay/src/relay.rs(+43 -0)📄 Description
Closes # https://github.com/hoppscotch/hoppscotch/issues/4387
Set option accept_encoding on curl_handler so curl can decode gzip and deflate
What's changed
Added test_gzip_encoding
Added test_deflate_encoding
Added curl_handle.accept_encoding(enc)
Notes to reviewers
The project didn't have any tests, so the ones I added could be improved
Also is the library currently supported encoding are identity, zlib, and gzip.
https://docs.rs/curl/latest/curl/easy/struct.Easy2.html#method.accept_encoding
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.