User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Call sendHeaders after headers are set.
And set status code with application instead of using http_response_code.
Content type is incorrect text/html.

Content type is correct application/json, and other headers are also set.

Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_media |
| Title |
|
||||||
| Labels |
Added:
bug
PR-5.3-dev
|
||
This pull request has been automatically rebased to 5.4-dev.
I have tested this item ✅ successfully on e49301b
It took me a while to figure out exactly what to do: my browser URL
Without the patch I could see Content Type: text/html and the visible response was just text but obviously json. With the patch the response was application/json and the browser nicely formatted the json for me.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45150.