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

Reply via email to