Skip to content

docs: correct GZipMiddleware compresslevel range to 0-9#3342

Open
patrickwehbe wants to merge 1 commit into
Kludex:mainfrom
patrickwehbe:gzip-compresslevel-doc-range
Open

docs: correct GZipMiddleware compresslevel range to 0-9#3342
patrickwehbe wants to merge 1 commit into
Kludex:mainfrom
patrickwehbe:gzip-compresslevel-doc-range

Conversation

@patrickwehbe

@patrickwehbe patrickwehbe commented Jun 24, 2026

Copy link
Copy Markdown

The GZip middleware docs say compresslevel is "an integer ranging from 1 to 9". GZipMiddleware passes the value straight into gzip.GzipFile(..., compresslevel=compresslevel), which accepts 0 through 9, where 0 means no compression. So 0 is a valid level the current docs exclude.

This updates the range to 0 to 9. Docs-only change.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 1 file

Re-trigger cubic

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