[wp-trac] [WordPress Trac] #39150: Empty JSON Payload Causes rest_invalid_json
WordPress Trac
noreply at wordpress.org
Mon Dec 12 17:00:36 UTC 2016
#39150: Empty JSON Payload Causes rest_invalid_json
--------------------------------------+-----------------------
Reporter: GamerZ | Owner: jnylen0
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.7.1
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------
Comment (by jnylen0):
> I defer to the API team on this, but I wonder if a narrower fix might be
to skip body parsing (or allow empty body) for methods that don't
specifically support a message-body.
I'm not opposed to it, but @boonebgorges let's do that in a separate
ticket.
The issue being discussed here was introduced in 4.7; the change you're
proposing would date back to 4.4.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39150#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list