Pending

User tests: Successful: 0 Unsuccessful: 0

avatar AkameOuO
AkameOuO
18 Mar 2025

Pull Request for Issue # .

Summary of Changes

Call sendHeaders after headers are set.
And set status code with application instead of using http_response_code.

Testing Instructions

  • Open media manager.
  • Open browser devtools and watch response headers related to com_media api.

Actual result BEFORE applying this Pull Request

Content type is incorrect text/html.
image

Expected result AFTER applying this Pull Request

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

Link to documentations

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

avatar AkameOuO AkameOuO - open - 18 Mar 2025
avatar AkameOuO AkameOuO - change - 18 Mar 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Mar 2025
Category Administration com_media
avatar AkameOuO AkameOuO - change - 27 Mar 2025
Title
[5.2] Fix headers are not sent correctly in com_media api controller
[5.3] Fix headers are not sent correctly in com_media api controller
avatar AkameOuO AkameOuO - edited - 27 Mar 2025

Add a Comment

Login with GitHub to post a comment