Skip to content

update request to extend headers passed #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 9, 2025

Conversation

ekozilforce
Copy link
Collaborator

Description

This pr updates docs for HttpRequestUtil.request and proposes a change to how we handle merging fetch options: we currently overwrite all headers and should consider extending them instead.

Additionally, we add test coverage to HttpRequestUtil to help catch issues earlier. See: https://salesforce-internal.slack.com/archives/C06EA6CPVST/p1749222091948929?thread_ts=1749211655.207919&cid=C06EA6CPVST

Testing

Added ci test for the new header logic

@ekozilforce ekozilforce requested a review from a team as a code owner June 6, 2025 17:56
@ekozilforce ekozilforce force-pushed the ekozil/extend-not-overwrite-request-headers branch from 3fe75e1 to 9c0f67b Compare June 6, 2025 18:00
@ekozilforce ekozilforce merged commit 0bbc9d7 into main Jun 9, 2025
4 of 8 checks passed
ekozilforce added a commit that referenced this pull request Jun 9, 2025
* update request to extend headers passed

* yarn format:write
ekozilforce added a commit that referenced this pull request Jun 9, 2025
* update request to extend headers passed

* yarn format:write
ekozilforce added a commit that referenced this pull request Jun 9, 2025
* update request to extend headers passed

* yarn format:write
ekozilforce added a commit that referenced this pull request Jun 9, 2025
* update request to extend headers passed (#40)

* update request to extend headers passed

* yarn format:write

* update changelog

* fix inconsistent capitalization
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