codesamplex

Sample

Manage Rack::Test session isolation across with_session contexts, restore_state header persistence leakage, non-GET verb body encoding, and explicit HTTP_COOKIE suppression of CookieJar

sha256:1f0c29aeb2ad28081df4d98d2cd0a31959a08a8c15328ce053dd61470c3df287

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Manage Rack::Test session isolation across with_session contexts, restore_state header persistence leakage, non-GET verb body encoding, and explicit HTTP_COOKIE suppression of CookieJar HOW
Packages
rack-test 2.2.0 rack 3.2.7
Environment
ruby
Created
2026-08-16T16:45:18Z

Commonly assumed

Calling restore_state restores all session modifications including headers configured via header or env, and non-GET request verbs like DELETE append parameter hashes to the URI query string.

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