Skip to content

fix(fetch): preserve Request __sapiom metadata across cloning - #769

Open
kutluhaneth46 wants to merge 1 commit into
sapiom:mainfrom
kutluhaneth46:fix/fetch-preserve-request-sapiom-metadata-690
Open

fix(fetch): preserve Request __sapiom metadata across cloning#769
kutluhaneth46 wants to merge 1 commit into
sapiom:mainfrom
kutluhaneth46:fix/fetch-preserve-request-sapiom-metadata-690

Conversation

@kutluhaneth46

Copy link
Copy Markdown

Summary

  • @sapiom/fetch cloned Request inputs with new Request(input, init) before reading __sapiom, so per-request { enabled: false } overrides were silently dropped.
  • Read metadata from the source Request before cloning and copy it onto every internal new Request (identity header, authorization, 402 retry).

Fixes #690

Test plan

Made with Cursor

@github-actions github-actions Bot added contribution: incomplete Required pull request information is incomplete or ambiguous contributor: external Pull request author does not have write, maintain, or admin access to sapiom-js needs-triage Awaiting maintainer review and classification review: manual External pull request requires maintainer review before automation size: medium Review size is 101–500 changed lines area: integrations Changes to HTTP or framework integrations labels Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: integrations Changes to HTTP or framework integrations contribution: incomplete Required pull request information is incomplete or ambiguous contributor: external Pull request author does not have write, maintain, or admin access to sapiom-js needs-triage Awaiting maintainer review and classification review: manual External pull request requires maintainer review before automation size: medium Review size is 101–500 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: @sapiom/fetch loses Request.__sapiom metadata when cloning input

1 participant