CodeSampleX

Sample

Prove that ResponseWriter header modifications made after WriteHeader are silently dropped from the response.

sha256:ec9a568e5b97777537dd0d9c4a63cfcd68a69c8b638fa0433da2221557702f8c

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Prove that ResponseWriter header modifications made after WriteHeader are silently dropped from the response. HOW
Packages
net/http go1.26.5
Environment
go
Created
2026-08-17T01:33:16Z

Commonly assumed

Headers set on http.ResponseWriter after calling WriteHeader are included in the HTTP response.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts