Skip to content

Conversation

@mpignatelli12
Copy link
Contributor

Why this should be merged

Previously the gzip middleware added gzip header to all responses, which breaks gRPC support. Compression can be handled more cleanly somewhere upstream if needed, meaning this middleware is not necessary and should be removed.

How this works

The gziphandler.GzipHandler wrapper is removed from the API server setup. The import was removed and go.mod and go.sum were cleaned up, removing the dependency.

How this was tested

CI

Need to be documented in RELEASES.md?

Yes

@mpignatelli12 mpignatelli12 requested a review from joshua-kim June 9, 2025 20:38
@joshua-kim joshua-kim moved this to In Progress 🏗️ in avalanchego Jun 9, 2025
@joshua-kim joshua-kim linked an issue Jun 9, 2025 that may be closed by this pull request
@StephenButtolph StephenButtolph added this pull request to the merge queue Jun 9, 2025
Merged via the queue into master with commit 7f8d659 Jun 9, 2025
28 checks passed
@StephenButtolph StephenButtolph deleted the remove-gzip-middleware branch June 9, 2025 21:54
@github-project-automation github-project-automation bot moved this from In Progress 🏗️ to Done 🎉 in avalanchego Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Remove gzip middleware from api server

4 participants