Re: libcurl(?) bug
[email protected] (Tamas Papp)
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
On 2/9/21 1:30 PM, Christoph M. Becker wrote:
>
>> // NOK:
>> curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: /\r\n"));
> I don't think that CURLOPT_HTTPHEADERs are supposed to have a trailing CRLF.
However, I agree with you on that, since it breaks a previously
correctly working code, it still looks like a bug.
Unless the backward compatibility intentionally should not be kept for
any reason.
Am I wrong?
t