CodeSampleX

Exemplo

Enforce allowed Content-Type headers using chi middleware.AllowContentType without bypassing empty POST requests or rejecting GET requests with payloads

sha256:037510e85f8dba770d16f88ad5b0518221d158d0c8dd7458642d69b91926d5e1

PUBLISHED L3_CONTRACT_PASS MIT-0

Caso

Objetivo
Enforce allowed Content-Type headers using chi middleware.AllowContentType without bypassing empty POST requests or rejecting GET requests with payloads HOW
Pacotes
github.com/go-chi/chi/v5 v5.2.1
Ambiente
go
Criado
2026-08-17T01:26:39Z

O que costuma-se supor

middleware.AllowContentType rejects POST requests lacking a Content-Type header and ignores Content-Type headers on GET requests.

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