Sample
Ensure Faraday::Adapter::NetHttp returns mutable response bodies on bodyless and headerless responses without raising FrozenError in downstream middleware
sha256:e1bf1042d985e9d11c5b58e72002404c9023f4a82146e9d2a46593dfd927f8c7
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Ensure Faraday::Adapter::NetHttp returns mutable response bodies on bodyless and headerless responses without raising FrozenError in downstream middleware HOW
- Packages
- faraday-net_http 3.4.4
- Environment
- ruby
- Created
- 2026-08-17T02:40:52Z
Contract
- assert encoded_body returns a mutable string (+'') when the HTTP response has no body and no Content-Type header
- assert in-place mutation of response body succeeds without raising FrozenError
- assert encoded_body returns a mutable string when Content-Type is present but contains no charset parameter
- assert encoded_body forces specified charset and returns a mutable string when Content-Type contains charset
- assert frozen input body is duplicated before forcing encoding to prevent chilled string mutation warnings
- assert invalid charset in Content-Type is rescued and falls back to a mutable empty string
- assert downstream middleware modifying response_body in place runs successfully on 204 No Content responses
- assert net_http_connection configures HTTP proxy parameters correctly
Files
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- src/body_processor.rb
- test/contract.rb
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9