• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

go-goyave / goyave / 35037628431
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: fix/compress-quality-zero
DEFAULT BRANCH: master
Ran 15 Sep 2026 11:57PM UTC
Jobs 1
Files 100
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Sep 2026 11:53PM UTC coverage: 97.146% (+0.005%) from 97.141%
35037628431

Pull #296

github

MaxFreedomPollard
compress: fix quality value of 0 being ignored in getEncoder

`getEncoder` grouped the parsed `Accept-Encoding` values by priority but
never compared that priority to 0, so an encoding the client explicitly
refused with `q=0` was still selected and the response was compressed
with it. The parsed values are sorted by descending priority, so the
zero-priority ones are now split off the end of the slice before the
encoders are matched, and the loop only sees encodings the client
actually accepts. When nothing is left, the middleware passes through
uncompressed.

The wildcard branch used to return the first configured encoder
unconditionally, which returned the rejected encoding for a header such
as `gzip;q=0, *`. It now returns the first configured encoder that the
header did not reject, and nil when every encoder was rejected. That
unconditional `m.Encoders[0]` also panicked with an index out of range
when `Encoders` was empty and the request sent `Accept-Encoding: *`; the
lookup that replaces it returns nil instead.
Pull Request #296: compress: fix quality value of 0 being ignored in getEncoder

12 of 12 new or added lines in 2 files covered. (100.0%)

3 existing lines in 2 files now uncovered.

5684 of 5851 relevant lines covered (97.15%)

278.29 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
87.16
0.0% lang/lang.go
1
97.44
0.38% middleware/compress/compress.go
Jobs
ID Job ID Ran Files Coverage
1 35037628431.1 15 Sep 2026 11:57PM UTC 100
97.15
GitHub Action Run
Source Files on build 35037628431
  • Tree
  • List 100
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #296
  • PR Base - master (#34210219053)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc