cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Bug#572276: instead of a test...

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 23 Mar 2010 15:23:57 +0100 (CET)

On Tue, 23 Mar 2010, Daniel Stenberg wrote:

> Can you you please see why lib/http.c:3340 isn't enough to cover for this
> problem?

Hm, it's because of line lib/http.c:3561 which sets maxdownload so it is
already set later on when it spots that both chunked encoded and
content-length is specified, but only ->size is set to -1 and maxdownload is
left untouch then.

Akos Pasztory's original suggestion seems like the accurate fix. Thanks.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-23