cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem with the Accept header?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 15 Feb 2008 09:47:28 +0100 (CET)

On Fri, 15 Feb 2008, Pooyan McSporran wrote:

> I'm not very familiar with the innards of libcurl, but it appears that
> libcurl does check to see if the user has specified a custom Accept header,
> and if one is not specified then the default value is used. This is fine in
> itself, but if we then later do a subsequent request but with a custom
> Accept header then this default value is not cleared (ie, the code should
> set http->p_accept to NULL in this scenario). See http.c:2186 in current
> CVS.

I can only agree with this conclusion and fix. Thanks a lot for the report.
I'll commit this fix to CVS in a minute!

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-02-15