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

alexferl / zerohttp / 24062594982
94%

Build:
DEFAULT BRANCH: master
Ran 07 Apr 2026 03:20AM UTC
Jobs 1
Files 93
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 Apr 2026 03:19AM UTC coverage: 93.968% (+0.01%) from 93.958%
24062594982

push

github

web-flow
feat: default error responses to JSON instead of plain text (#169)

Change the default behavior when no Accept header is present to return
application/problem+json instead of text/plain. This affects:

- All middleware error responses (circuitbreaker, cors, csrf, host,
  idempotency, jwtauth, ratelimit, recover, timeout)
- Router default 404 Not Found and 405 Method Not Allowed handlers

The AcceptsJSON() function now returns true when the Accept header is
empty, making JSON the default response format. Clients can still
request plain text by sending Accept: text/plain.

Updated all tests to reflect the new default behavior and added
explicit tests for plain text responses when requested.

Signed-off-by: alexferl <me@alexferl.com>

32 of 32 new or added lines in 3 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

10593 of 11273 relevant lines covered (93.97%)

440.15 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
97.26
-2.74% validator/registry.go
Jobs
ID Job ID Ran Files Coverage
1 24062594982.1 07 Apr 2026 03:20AM UTC 93
93.97
GitHub Action Run
Source Files on build 24062594982
  • Tree
  • List 93
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24062594982
  • 23c16dd0 on github
  • Prev Build on master (#23970244593)
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