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

jhillyerd / enmime / 27103795997
86%
main: 86%

Build:
Build:
LAST BUILD BRANCH: fix/issue-109
DEFAULT BRANCH: main
Ran 07 Jun 2026 08:24PM UTC
Jobs 2
Files 39
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

07 Jun 2026 08:26PM UTC coverage: 86.41% (+0.01%) from 86.4%
27103795997

Pull #401

github

troclaux
fix: assemble RFC 2231 multi-segment filename params with non-UTF-8 charsets

Go's mime.ParseMediaType only supports UTF-8 and US-ASCII in RFC 2231
charset-encoded continuation parameters. When a Content-Disposition header
uses a non-ASCII charset (e.g. EUC-KR) split across multiple filename*N*=
segments, stdlib discards all but the last successfully decoded segment,
producing a truncated filename.

Add assembleRFC2231Params in the mediatype package to detect continuation
parameters (name*N*= / name*N=), sort by segment number, concatenate the
percent-decoded bytes, convert from the declared charset to UTF-8 using
enmime's existing coding package, and replace the N-segment params with a
single RFC 2231 UTF-8 encoded parameter before passing to mime.ParseMediaType.

Fixes #109
Pull Request #401: fix: assemble RFC 2231 multi-segment filename params with non-UTF-8 charsets

93 of 107 new or added lines in 1 file covered. (86.92%)

3370 of 3900 relevant lines covered (86.41%)

4215.29 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
94.49
-2.35% mediatype/mediatype.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.26.x - 27103795997.1 07 Jun 2026 08:24PM UTC 39
86.41
GitHub Action Run
2 Go-1.25.x - 27103795997.2 07 Jun 2026 08:24PM UTC 39
86.41
GitHub Action Run
Source Files on build 27103795997
  • Tree
  • List 39
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #401
  • PR Base - main (#27102267292)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc