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

Set content-type header for AI extension errors #7324

Merged
merged 1 commit into from May 15, 2024

Conversation

scotttrinh
Copy link
Contributor

@scotttrinh scotttrinh commented May 9, 2024

We are returning JSON here, but without setting the header it returns text/plain so user agents aren't able to predict that the content is actually JSON.

@scotttrinh scotttrinh merged commit 1ba5ef9 into master May 15, 2024
24 checks passed
@scotttrinh scotttrinh deleted the ext-ai-errors-json branch May 15, 2024 12:58
@vpetrovykh vpetrovykh added backported-5.x PRs that *have* been backported to 5.x (starting with 5.3) and removed to-backport-5.x labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported-5.x PRs that *have* been backported to 5.x (starting with 5.3)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants