From 6b490ed33c3ffc4ac96719df7f8c5df46476579a Mon Sep 17 00:00:00 2001 From: Julien Chaffraix Date: Mon, 16 Aug 2010 22:54:19 +0200 Subject: progress: callback for POSTs less than MAX_INITIAL_POST_SIZE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a call to Curl_pgrsSetUploadSize in this case valided by a test case. Reported by: Никита Дорохин. Bug: http://curl.haxx.se/mail/lib-2010-04/0173.html --- lib/http.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/http.c') diff --git a/lib/http.c b/lib/http.c index 926d51f2b..2d0e78af3 100644 --- a/lib/http.c +++ b/lib/http.c @@ -2894,6 +2894,8 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) } if(result) return result; + /* Make sure the progress information is accurate */ + Curl_pgrsSetUploadSize(data, postsize); } else { /* A huge POST coming up, do data separate from the request */ -- cgit v1.2.3