Skip to content

fix(sync): preserve additional headers in generic calls - #193

Open
WilliamK112 wants to merge 1 commit into
btoron:masterfrom
WilliamK112:codex/sync-custom-call-headers
Open

WilliamK112 wants to merge 1 commit into
btoron:masterfrom
WilliamK112:codex/sync-custom-call-headers

Conversation

@WilliamK112

Copy link
Copy Markdown
Contributor

OFSApi.call() merged additionalHeaders and then immediately replaced that result with the default headers. Custom Accept headers and caller overrides therefore never reached the server. Keep the merged headers when sending the request.

Addresses the separate additionalHeaders defect reported in #160; the synchronous streaming request in that issue remains open.

Validation: 452 tests pass, 8 skip; Ruff check and formatting pass. Five new tests failed before the fix and now verify the real HTTP request against a temporary loopback server: custom headers, Content-Type and Authorization overrides, preserved body/query parameters, unchanged caller dictionaries, and no header leakage into later calls. No OFS credentials or external endpoint are used.

Signed-off-by: WilliamK112 <164879897+WilliamK112@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants