Пример
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