diff options
author | Julien Chaffraix <julien.chaffraix@gmail.com> | 2010-08-16 22:54:19 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-08-16 22:56:43 +0200 |
commit | 6b490ed33c3ffc4ac96719df7f8c5df46476579a (patch) | |
tree | 9cd0751ba8359060ecd056fb443192fc2bccb1da /lib | |
parent | 4d703ee1005cfc4cc1ff2b8dbbf4469de63d240f (diff) |
progress: callback for POSTs less than MAX_INITIAL_POST_SIZE
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |