Ejemplo
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
Caso
- Objetivo
- Prevent protocol-relative and scheme-like paths from overriding Faraday connection host and scheme during URL resolution HOW
- Paquetes
- faraday 2.14.3
- Entorno
- ruby
- Creado
- 2026-08-17T02:36:49Z
Contrato
- 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
Archivos
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- src/url_resolver.rb
- test/contract.rb
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9