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

paskal / secrets
88%
master: 67%

Build:
Build:
LAST BUILD BRANCH: fix-content-type-header
DEFAULT BRANCH: master
Repo Added 12 Apr 2020 12:42PM UTC
Token m1ZMvqhQCKvIv6VSEKYd7ULJvafmRsrcb regen
Build 7 Last
Files 13
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

LAST BUILD ON BRANCH fix-content-type-header
branch: fix-content-type-header
CHANGE BRANCH
x
Reset
Sync Branches
  • fix-content-type-header
  • bump_modules
  • dependabot
  • master
  • paskal/fix_golangci_lint

16 Dec 2025 09:44PM UTC coverage: 88.06%. First build
20283718272

push

github

paskal
fix Content-Type header not being set for JSON responses

WriteHeader() locks response headers, so calling RenderJSON() after
WriteHeader() results in Content-Type not being set (silently ignored).
Use EncodeJSON() which sets Content-Type before WriteHeader.

See: https://github.com/go-pkgz/rest/issues/38

1298 of 1474 relevant lines covered (88.06%)

22.41 hits per line

Relevant lines Covered
Build:
Build:
1474 RELEVANT LINES 1298 COVERED LINES
22.41 HITS PER LINE
Source Files on fix-content-type-header
  • Tree
  • List 13
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
20283718272 fix-content-type-header fix Content-Type header not being set for JSON responses WriteHeader() locks response headers, so calling RenderJSON() after WriteHeader() results in Content-Type not being set (silently ignored). Use EncodeJSON() which sets Content-Type before W... push 16 Dec 2025 09:46PM UTC paskal github
88.06
See All Builds (7)

Badge your Repo: secrets

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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