Skip to content

Send endpoint headers from all transports - #2313

Open
puneeth1999 wants to merge 3 commits into
opensearch-project:mainfrom
puneeth1999:fix/generic-client-request-headers
Open

puneeth1999 wants to merge 3 commits into
opensearch-project:mainfrom
puneeth1999:fix/generic-client-request-headers

Conversation

@puneeth1999

@puneeth1999 puneeth1999 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Description

Headers declared by an Endpoint (e.g. generic client requests) were silently dropped by RestClientTransport, ApacheHttpClient5Transport and AwsSdk2Transport . They are now sent.

Resolves Issue

Resolves #1234

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Puneeth C <puneeth.c@walmart.com>
@puneeth1999
puneeth1999 force-pushed the fix/generic-client-request-headers branch from b1726e4 to 6fcf825 Compare November 21, 2026 07:34
@puneeth1999

Copy link
Copy Markdown
Contributor Author

@reta / @Xtansia , would you please a look at this PR? Looks like the issue was reported in 2024 and there was no fix published.
Thanks!

@reta

reta commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

@reta / @Xtansia , would you please a look at this PR? Looks like the issue was reported in 2024 and there was no fix published. Thanks!

Thanks @puneeth1999 , this does not fix #1234 but still fixes an issue, thank you (it actually does, my bad)

@reta reta added the v3.11.1 Issues and PRs related to version v3.11.1 label Nov 22, 2026
Apply the endpoint headers independently of the transport options, and when an option header has the same name as an endpoint header (compared case-insensitively), send only the option header.

Signed-off-by: Puneeth C <puneeth.c@walmart.com>
@puneeth1999
puneeth1999 requested a review from reta November 23, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v3.11.1 Issues and PRs related to version v3.11.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Headers provided in the request are not respected in the RestClientTransport

2 participants