• v0.1.2 d527174a2b

    fix: make session-default headers fully mutable; preview matches request in all cases

    dsql released this 2026-06-29 05:10:25 +00:00 | 7 commits to main since this release

    headers passed at construction were baked into aiohttp's ClientSession(headers=) (an immutable per-session map) AND merged in request(), a double path that made clear_headers()/update_headers() unable to remove or change what reached the wire. dropped headers= from the aiohttp session so _default_headers is our sole, mutable layer that request() and preview() both merge (defaults -> per-request -> overwrites). preview() now merges identically to request() even when explicit per-request headers are passed (it previously dropped session defaults in that case), so preview == wire in every case. clear_headers clears our defaults (not zero headers — per-request + overwrites still flow).

    Signed-off-by: disqualifier dev@disqualifier.me

    Downloads