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

Fix missing custom headers for searchapi endpoints #138

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

dacox
Copy link
Contributor

@dacox dacox commented Nov 24, 2023

As seen in o19s/quepid#890, when setting up an apisearch endpoint, no custom headers are ever sent by the browser.

In this PR I update the searchapi Searcher to get headers the same way the es Searcher does and pass them along to the transport.

In my reading, this was the only Searcher not propagating these headers. I re-used esUrlSvc.getHeaders as this service was already in use in the searchapi Searcher.

Copy link
Member

@epugh epugh left a comment

Choose a reason for hiding this comment

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

This makes sense. It makes me a bit sad that esUrlSvc seems to be taking on a life of it's own... But this looks reasonable change.

@epugh epugh merged commit f0693fd into o19s:main Nov 28, 2023
@dacox dacox deleted the apisearch-fix-missing-custom-headers branch November 28, 2023 18:35
@dacox
Copy link
Contributor Author

dacox commented Nov 28, 2023

This makes sense. It makes me a bit sad that esUrlSvc seems to be taking on a life of it's own... But this looks reasonable change.

Yeah, totally, it seems to be handling some cross cutting concerns. Thanks for merging!

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