Skip to content

Refactor: use global header constants instead of hardcoded strings#128

Open
StounhandJ wants to merge 1 commit intogin-contrib:masterfrom
StounhandJ:const
Open

Refactor: use global header constants instead of hardcoded strings#128
StounhandJ wants to merge 1 commit intogin-contrib:masterfrom
StounhandJ:const

Conversation

@StounhandJ
Copy link

Summary

Replaced hardcoded HTTP header names ("Content-Length", "Content-Encoding", "Vary", "ETag") with predefined constants throughout the gzip middleware and tests.

Motivation

In general, this is not a functional update, but rather, I noticed that they started using global constants, but only in random parts of the code. Now everything is unified.

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