[wp-trac] [WordPress Trac] #61812: wrong content type in error response on api.wordpress.org
WordPress Trac
noreply at wordpress.org
Fri Aug 2 19:30:31 UTC 2024
#61812: wrong content type in error response on api.wordpress.org
--------------------------------+-----------------------------
Reporter: hadmut | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: WordPress.org Site | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------------+-----------------------------
curl -D /dev/stdout https://api.wordpress.org/plugins/update-check/1.1/
produces – of course – an error message, because the api call is wrong.
But it's header says
Content-Type: application/json; charset=utf-8
while the body is just
error
which is not json and thus breaks REST Clients. Either return json, or do
not claim the content type is json.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61812>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list