codesamplex

サンプル

Detect silent middleware header name casing changes in rack-protection 4.x compared with 3.x.

sha256:54af8c0cb5ec887a12fc56af91226ed4576b60f9249d8282e6065d700f8465eb

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Detect silent middleware header name casing changes in rack-protection 4.x compared with 3.x. HOW
パッケージ
rack-protection 4.0.0
環境
ruby
作成日
2026-08-16T16:39:07Z

よくある思い込み

Security middleware in Rack::Protection sets response security headers with mixed-case names like `X-XSS-Protection` and `X-Content-Type-Options`.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート