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: Respond to /api requests as JSON by default (backport #13028) #13408

Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jun 2, 2021

This is an automatic backport of pull request #13028 done by Mergify.

If header 'Accept: application/json' isn't set, the failure
responses to /api endpoints is HTML. Success responses are of type JSON.

(cherry picked from commit fcf6362)

# Conflicts:
#	frappe/app.py
@surajshetty3416 surajshetty3416 merged commit 2df7060 into version-12-hotfix Jun 2, 2021
@surajshetty3416 surajshetty3416 deleted the mergify/bp/version-12-hotfix/pr-13028 branch June 2, 2021 05:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants