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

Add decorator tests for guzzle and symfony #256

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

kimpepper
Copy link
Collaborator

Description

Adds tests for Guzzle and Symfony to test if the host header is passed in the request.

This shows that Guzzle passes the host from the base_uri default option while the Symfony HTTP Client does not.

You need to manually set the default 'Host' header in the Symfony HTTP Client for it to be sent in the request.

Issues Resolved

#248

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.

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

I am 99% sure I tried setting Host in headers in my demo and did not get that in the signer, but I will retry again.

@dblock dblock merged commit 274adf2 into opensearch-project:main Jan 16, 2025
46 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants