#37839 closed defect (bug) (fixed)
wp_remote_get sometimes mutilates the response body
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.7.1 | Priority: | normal |
Severity: | normal | Version: | 4.6 |
Component: | HTTP API | Keywords: | |
Focuses: | Cc: |
Description
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).
Change History (7)
#3
follow-up:
↓ 4
@
8 years ago
- Milestone changed from Future Release to 4.7
- Owner set to rmccue
- Status changed from new to assigned
PR merged; needs update in core.
#4
in reply to:
↑ 3
@
8 years ago
Replying to rmccue:
PR merged; needs update in core.
Is it possible to get a patch for 4.6.1 to fix this bug until 4.7 arrives (in december 2016)?
Can change milestone to 4.7 once the PR has been merged upstream.