サンプル
Prevent protocol-relative and scheme-like paths from overriding Faraday connection host and scheme during URL resolution
sha256:72e2806736c538d0147532cef69387084d406aeb462b05198fa2bb1b2bfb27b0
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Prevent protocol-relative and scheme-like paths from overriding Faraday connection host and scheme during URL resolution HOW
- パッケージ
- faraday 2.14.3
- 環境
- ruby
- 作成日
- 2026-08-17T02:36:49Z
コントラクト
- assert protocol-relative paths starting with double slash retain the connection base host instead of overriding the target host
- assert scheme-like relative paths without leading slashes do not become opaque URIs with arbitrary schemes
- assert standard relative paths append to the connection url_prefix path directory
- assert absolute paths starting with a single slash replace only the path component while preserving host and scheme
- assert fully qualified absolute HTTP and HTTPS URLs explicitly override the base host and scheme
- assert query parameters passed during URL resolution append to the normalized connection URL without altering host boundaries
- assert test adapter requests with protocol-relative paths route under the connection base host rather than an external target
ファイル
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- src/url_resolver.rb
- test/contract.rb
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9