codesamplex

サンプル

Show that Rack::Test only honored secure cookies when the `Secure` attribute is parsed case-insensitively in 2.2.0.

sha256:9e8d4bd2244417402cfedd6861a8b9f55887ef04d103e164aba7aa80f3fa49ac

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Show that Rack::Test only honored secure cookies when the `Secure` attribute is parsed case-insensitively in 2.2.0. HOW
パッケージ
rack-test 2.2.0
環境
ruby
作成日
2026-08-16T16:41:09Z

よくある思い込み

A `Set-Cookie` flag named `Secure` is treated as case-sensitive in rack-test, so uppercase `Secure` behaves like an unknown token and is ignored.

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

コントラクト

ファイル

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

オリジンシーダー

csx-seed

検証レシート