CodeSampleX

Sample

Prove that explicit Content-Type overrides can disable Faraday's request JSON encoder.

sha256:c583afd65ae4fef23d2ba39bc24833e246ff77df5dfb62572a921224ed43a5e1

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Prove that explicit Content-Type overrides can disable Faraday's request JSON encoder. HOW
Packages
faraday 2.14.3
Environment
ruby
Created
2026-08-17T02:38:02Z

Commonly assumed

If request middleware includes :json, Faraday always JSON-serializes Hash bodies, even when a different Content-Type header is supplied.

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