curl-library
Re: [BUG] libCURL 7.16.1 and up breaks streaming.
Date: Tue, 1 May 2007 18:50:45 +0200 (CEST)
On Mon, 30 Apr 2007, Tobias Rundström wrote:
>> I would instead suggest that we work on a fix that detects HTTP version or
>> something, and do this check based on that since I'm referring to the HTTP
>> 1.1 spec and your streams don't seem to adhere to that? Aren't you even
>> using HTTP200ALIASES to match the response?
>
> Yes, both ways work for me. The later solution is of course more flexible if
> we want to use libCURL for something else later. We are using HTTP200ALIASES
> for ICY 200 which is the response from the server.
My suggested patch is attached. It requires that you set CURLOPT_HTTP_VERSION
to CURL_HTTP_VERSION_1_0 in addition to the CURLOPT_HTTP200ALIASES option.
All test cases still run fine here with this applied, and having it only do
this for HTTP 1.1 seems the right thing to do to me.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
- TEXT/PLAIN attachment: xmms2.patch