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

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

Build:
Build:
LAST BUILD BRANCH: fix/proxy-base-url-port
DEFAULT BRANCH: master
Ran 22 Oct 2026 10: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

22 Oct 2026 10:52PM UTC coverage: 97.145% (+0.001%) from 97.144%
39868376389

Pull #301

github

MaxFreedomPollard
fsutil: fix zero padding being sniffed in DetectContentType

DetectContentType read into a 512-byte buffer and passed the whole
buffer to http.DetectContentType, ignoring the number of bytes read.
For content shorter than 512 bytes the rest of the buffer is zeros,
and 0x00 is a binary data byte for the MIME sniffing algorithm, so
short text without a BOM was never detected as text.

Uploaded text files under 512 bytes got "application/octet-stream" as
MIMEType (ParseMultipartFiles has no extension fallback), and small
files served with Response.File/Download lacked the charset parameter
that the same content gets at 512 bytes or more.

Only sniff buffer[:n], as net/http does in serveContent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #301: fsutil: fix zero padding being sniffed in DetectContentType

1 of 1 new or added line in 1 file covered. (100.0%)

10 existing lines in 1 file now uncovered.

5682 of 5849 relevant lines covered (97.14%)

278.47 hits per line

Coverage Regressions

Lines Coverage ∆ File
10
86.18
0.09% util/fsutil/fsutil.go
Jobs
ID Job ID Ran Files Coverage
1 39868376389.1 22 Oct 2026 10:57PM UTC 100
97.14
GitHub Action Run
Source Files on build 39868376389
  • Tree
  • List 100
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #301
  • PR Base - master (#36430789441)
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