• 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: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • bump_modules
  • dependabot
  • fix-content-type-header
  • 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 master
  • 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
9036737660 dependabot add dependabot updates for GitHub Actions and Go modules push 10 May 2024 06:52PM UTC paskal github
67.11
9036733830 master pin golangci-lint version to latest available, fix reported errors push 10 May 2024 06:51PM UTC umputun github
67.11
9030992331 paskal/fix_golangci_lint pin golangci-lint version to latest available, fix reported errors push 10 May 2024 10:36AM UTC paskal github
67.11
9024205192 paskal/fix_golangci_lint pin golangci-lint version to latest available, fix reported errors push 09 May 2024 10:13PM UTC paskal github
67.11
9024028290 paskal/fix_golangci_lint pin golangci-lint version to latest available, fix reported errors push 09 May 2024 09:55PM UTC paskal github
67.11
96d200717 bump_modules bump modules, switch to bbolt v1.3.4 push 12 Apr 2020 12:42PM UTC Dmitry Verkhoturov github
74.49
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