[wp-trac] [WordPress Trac] #37839: wp_remote_get sometimes mutilates the response body

WordPress Trac noreply at wordpress.org
Fri Aug 26 12:29:10 UTC 2016


#37839: wp_remote_get sometimes mutilates the response body
---------------------------+-----------------------------
 Reporter:  stephenharris  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  HTTP API       |    Version:  4.6
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 This happens when the HTTP header claims the body is chunk encoded when it
 is actual fact not, AND the body appears chunked correctly (although it
 isn't).

 The underlying issue (apart from a lying a HTTP header) is the Requests
 library is not recognising that the chunk encoding is not valid. This has
 been reported upstream: https://github.com/rmccue/Requests/pull/236, this
 issue has been opened to track the issue here.

 The symptom of the issue is that `wp_remote_get()` will sometimes return a
 response with lines removed from the body (mistaken as chunk headers).

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


More information about the wp-trac mailing list