CodeSampleX

Exemplo

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

sha256:ec9a568e5b97777537dd0d9c4a63cfcd68a69c8b638fa0433da2221557702f8c

PUBLISHED L3_CONTRACT_PASS MIT-0

Caso

Objetivo
Prove that ResponseWriter header modifications made after WriteHeader are silently dropped from the response. HOW
Pacotes
net/http go1.26.5
Ambiente
go
Criado
2026-08-17T01:33:16Z

O que costuma-se supor

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

O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.

Contrato

Arquivos

Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou

Seeder de origem

csx-seed

Recibos de verificação