[wp-trac] [WordPress Trac] #22913: Files "corrupted" when streamed to file via HTTP API
WordPress Trac
noreply at wordpress.org
Tue Dec 25 03:35:27 UTC 2012
#22913: Files "corrupted" when streamed to file via HTTP API
--------------------------+-----------------------------
Reporter: samthorne | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: HTTP | Version: 3.2
Severity: normal | Resolution:
Keywords: |
--------------------------+-----------------------------
Comment (by rmccue):
From my work on [http://requests.ryanmccue.info/ Requests], I've found
that the best way to opt for no encoding is to simply not include the
header. Setting `Accept-Encoding: identity` can confuse some servers, and
`q=0` is simply ignored by some servers. Admittedly, these are edge cases,
but it's worth considering.
> Worth noting, that WP_HTTP claims to be a HTTP/1.0 client, so if it's
sending 1.1 headers, we should change the version to 1.1.
I believe it was set to this originally to avoid getting chunked responses
before the dechunking was implemented. I'm not 100% certain on this
though.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22913#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list