Skip to content

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