[wp-meta] [Making WordPress.org] #7735: wrong content type in error response on api.wordpress.org
Making WordPress.org
noreply at wordpress.org
Fri Aug 2 20:12:32 UTC 2024
#7735: wrong content type in error response on api.wordpress.org
--------------------------+--------------------
Reporter: hadmut | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: API | Keywords:
--------------------------+--------------------
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://meta.trac.wordpress.org/ticket/7735>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list