Skip to content

fix: isolate response header values#185

Merged
linkdata merged 2 commits into
mainfrom
fix/173-response-header-ownership
Jul 20, 2026
Merged

fix: isolate response header values#185
linkdata merged 2 commits into
mainfrom
fix/173-response-header-ownership

Conversation

@linkdata

Copy link
Copy Markdown
Owner

Closes #173

Summary

  • emit Cache-Control, Allow, and tail-script Content-Type through http.Header.Set
  • replace mutable package-level header slices with immutable string constants
  • verify sequential and concurrent response header ownership under the race detector

Testing

  • go generate ./...
  • go test -race ./...
  • go vet ./...
  • go build ./...
  • staticcheck ./...
  • golangci-lint run ./...
  • gosec ./...

@linkdata
linkdata merged commit 31ce40b into main Jul 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Response headers expose shared mutable package-level slices

1 participant