#9754 closed defect (bug) (fixed)
all calls to should_defalate are passing wrong argument
| Reported by: | wnorris | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 2.8 |
| Component: | HTTP API | Version: | 2.8 |
| Severity: | major | Keywords: | http has_patch |
| Cc: | Focuses: |
Description
All of the calls to WP_Http_Encoding::should_decode() are passing the argument $theHeaders (or whatever that variable is named for that function. btw, why is it so inconsistent?). This array contains two keys 'headers' and 'cookies'. should_decode() is expecting only the 'headers' array, so every call to should_decode needs to be updated to pass $theHeaders['headers']. Otherwise, HTTP responses are never decompressed.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [11236]) Pass just the headers array to should_decode. Fixes #9754 props willnorris.