Skip to content
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

Merge the existing headers from the Config Store #14

Merged
merged 1 commit into from
Nov 12, 2023

Conversation

pascalbaljet
Copy link
Contributor

In the createRequestOptions() method of the HttpSender class, the headers from the PSR Request are added to the config store. This would overwrite any headers that have already been set on the config, for example, from the defaultConfig() method of a Connector.

With this PR, it merges both the PSR Request headers and headers that already were present in the config store.

Copy link
Member

@Sammyjo20 Sammyjo20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR!

@Sammyjo20 Sammyjo20 merged commit dd8986e into saloonphp:v2 Nov 12, 2023
18 checks passed
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