[wp-trac] [WordPress Trac] #39284: Empty REST API JSON bodies should not return an error.
WordPress Trac
noreply at wordpress.org
Wed Dec 14 19:40:14 UTC 2016
#39284: Empty REST API JSON bodies should not return an error.
--------------------------+------------------------
Reporter: davemedema | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: REST API | Version: 4.7
Severity: normal | Resolution: duplicate
Keywords: | Focuses:
--------------------------+------------------------
Changes (by jnylen0):
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Comment:
Hi @davemedema - thanks for reporting. This is already done in WordPress
trunk, and this issue is a duplicate of #39150.
Note also that the error only appears in 4.7 when you send `Content-Type:
application/json`, so another way to avoid it is to omit the header when
you send a request with an empty body.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39284#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list