[wp-trac] [WordPress Trac] #39150: Empty JSON Payload Causes rest_invalid_json

WordPress Trac noreply at wordpress.org
Thu Dec 8 02:52:55 UTC 2016


#39150: Empty JSON Payload Causes rest_invalid_json
--------------------------------------+------------------------------
 Reporter:  GamerZ                    |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  REST API                  |     Version:  4.7
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by GamerZ):

 @jnylen0 changing the Content-Type header will work but it feels like it
 is not the right way of doing it.

 For the company I work at, our Content-Type defaults to application/json
 for most requests.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39150#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list