8000 Change content-type from json to x-ndjson (sent by searchkit to the search engine API) by eliasbaixas · Pull Request #1377 · searchkit/searchkit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Change content-type from json to x-ndjson (sent by searchkit to the search engine API) #1377

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

Conversation

eliasbaixas
Copy link
Contributor

Searchkit was sending "application/json" to the search engine API, this is technically incorrect, since the body of the request is a list of jsons concatenated by newline. This breaks the parsing of the request body on some (proxy) servers, for example Ruby on Rails, since when it tries to parse a json, if finds it is broken.

This fixes #1360.

Searchkit was sending "application/json" to the search engine API,
this is technically incorrect, since the body of the request is a
list of jsons concatenated by newline. This breaks the parsing of the
request body on some (proxy) servers, for example Ruby on Rails, since
when it tries to parse a json, if finds it is broken.

This fixes searchkit#1360.
@joemcelroy
Copy link
Member

thanks for submitting the PR, sorry haven't got back to this. Will review tomorrow.

@joemcelroy joemcelroy self-requested a review July 20, 2024 20:32
@joemcelroy joemcelroy merged commit 5ed34f1 into searchkit:main Jul 20, 2024
1 check 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.

Wrong content type: "application/json"
2 participants
0