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

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

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

23 Oct 2026 01:41PM UTC coverage: 97.144%. Remained the same
39963282342

Pull #301

github

System-Glitch
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

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

5681 of 5848 relevant lines covered (97.14%)

278.51 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39963282342.1 23 Oct 2026 01:42PM UTC 100
97.14
GitHub Action Run
Source Files on build 39963282342
  • Tree
  • List 100
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #301
  • PR Base - master (#39961599486)
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