codesamplex

Sample

Expose that method-aware mux patterns in net/http silently change which handler matches.

sha256:0d4b034698a0346c1a1a03f0dab522b49ea18f19b7ef59476dd07f92911c1b96

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Expose that method-aware mux patterns in net/http silently change which handler matches. HOW
Packages
net/http go1.26.5
Environment
go
Created
2026-08-16T13:07:01Z

Commonly assumed

A method token in a ServeMux pattern, such as `GET /resource`, is just part of the path and does not affect routing.

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