Skip to content

fix: remove unnecessary gzip header to prevent RPC deserialization failures#260

Open
pragyan69 wants to merge 2 commits intodrift-labs:masterfrom
pragyan69:fix/remove-gzip-header-v2
Open

fix: remove unnecessary gzip header to prevent RPC deserialization failures#260
pragyan69 wants to merge 2 commits intodrift-labs:masterfrom
pragyan69:fix/remove-gzip-header-v2

Conversation

@pragyan69
Copy link

Summary

This PR removes the manually-added HTTP header:

headers={"content-encoding": "gzip"}

from the DriftPy RPC request layer.

This header was incorrectly instructing Solana RPC nodes that the incoming request body was gzip-encoded, even though our client was sending plain JSON.
This caused many providers (especially Helius, Triton, and even api.mainnet-beta) to reject or mis-parse the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant