[wp-trac] [WordPress Trac] #40323: wp-admin/async-upload.php returns "text/html" at Content-Type

WordPress Trac noreply at wordpress.org
Fri Mar 31 11:28:04 UTC 2017


#40323: wp-admin/async-upload.php returns "text/html" at Content-Type
--------------------------------------+-----------------------------
 Reporter:  mrasu                     |      Owner:
     Type:  defect (bug)              |     Status:  new
 Priority:  normal                    |  Milestone:  Awaiting Review
Component:  REST API                  |    Version:  4.7.3
 Severity:  normal                    |   Keywords:
  Focuses:  administration, rest-api  |
--------------------------------------+-----------------------------
 When uploading image via wp-admin/async-upload.php, response-header
 includes "text/html" at Content-Type.

 I'm creating a module only for html.
 So I want to detect the response is html or not.
 But this response returns text/html at header, so I cannot detect
 correctly.
 To handle properly, I want response-header to use "application/json" or
 something.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40323>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list