[wp-trac] [WordPress Trac] #7770: HTTP API: Chunked transfer decode
fails.
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 20 12:13:33 GMT 2008
#7770: HTTP API: Chunked transfer decode fails.
---------------------+------------------------------------------------------
Reporter: DD32 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version: 2.7
Severity: normal | Keywords: has-patch
---------------------+------------------------------------------------------
It appears that not all hosts which set the transfer-encoding to chunked,
actually send the output in chunked format.
An example site of this is http://www.spiritblog.net/ (Purely random
selection)
The issue is that WP_Http::chunkTransferDecode() will return false on this
event.
I see 2 solutions:
* Have chunkTransferDecode() return the content back if its deterined not
to be chunked
* have the transports check that the return result of
chunkTransferDecode() is true before assigning to the body.
Option 1 seems a good route honestly, Decode it if its determined to be
chunked, else just pass it back. Patch will be attached for this route
shortly.
--
Ticket URL: <http://trac.wordpress.org/ticket/7770>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list