[PR #4791] [CLOSED] fix: gzip not been able to decode #4935

Closed
opened 2026-03-17 02:25:30 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4791
Author: @xTudoS
Created: 2/27/2025
Status: Closed

Base: patchHead: fix/gzip-content-decode


📝 Commits (3)

  • ad4ed95 fix: gzip not been able to decode
  • 6f98db8 set identity as default accept-encoding
  • 6c4a1d2 removed 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.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/4791 **Author:** [@xTudoS](https://github.com/xTudoS) **Created:** 2/27/2025 **Status:** ❌ Closed **Base:** `patch` ← **Head:** `fix/gzip-content-decode` --- ### 📝 Commits (3) - [`ad4ed95`](https://github.com/hoppscotch/hoppscotch/commit/ad4ed954846dd586c12e8e941a259a6edaccec61) fix: gzip not been able to decode - [`6f98db8`](https://github.com/hoppscotch/hoppscotch/commit/6f98db815816da74c05626ccdcc83f9d69ac63c2) set identity as default accept-encoding - [`6c4a1d2`](https://github.com/hoppscotch/hoppscotch/commit/6c4a1d256379f628b15fdd64f70c5e26b4955f09) removed fallback, as an api test tool i want to send only the headers I set ### 📊 Changes **2 files changed** (+109 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-relay/src/lib.rs` (+66 -0) 📝 `packages/hoppscotch-relay/src/relay.rs` (+43 -0) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:25:30 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4935
No description provided.