Skip to content

Allow to disable compression#2

Merged
jsnjack merged 1 commit intomasterfrom
req_comp
Mar 17, 2025
Merged

Allow to disable compression#2
jsnjack merged 1 commit intomasterfrom
req_comp

Conversation

@jsnjack
Copy link
Member

@jsnjack jsnjack commented Mar 13, 2025

This pr introduces an option to disable compression. Our vrec payload is small anyway and drf doesn't support zstd

@jsnjack jsnjack requested a review from Copilot March 13, 2025 15:48
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces an option to disable request body compression, giving users control over when compression should be applied.

  • Renames test case fields from compressPayload to enableRequestCompression and adds payloadWasCompressed to better reflect compression behavior.
  • Updates NewWebhookDispatcher to default request compression to enabled and includes new tests to verify the EnableCompression functionality.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
dispatcher_test.go Updated test cases to use new compression-related flags.
dispatcher.go Added documentation and logic for optional request compression.

@jsnjack jsnjack requested review from Vamxi and aogz March 13, 2025 15:49
@jsnjack jsnjack merged commit 8057453 into master Mar 17, 2025
1 check passed
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.

4 participants