Repository navigation
Commit d7b767b
feat(middleware): add text/xml and application/xml to default compressible types (#1127)
* feat(middleware): add text/xml and application/xml to default compressible types
XML content compresses very effectively and is commonly served
by web applications. This adds text/xml and application/xml to
the default compressible content types list.
Fixes #920
* test(middleware): derive default compressible types count from the slice
PR #1126 added application/xml and text/xml to
defaultCompressibleContentTypes but did not update the
TestCompressorWildcards/defaults assertion, which hardcoded the
expected count at 10. Derive it from len(defaultCompressibleContentTypes)
instead so the test stays correct as defaults are added or removed.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
---------
Co-authored-by: happysnaker <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>1 parent 3b50c7c commit d7b767b
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
0 commit comments