diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-27 19:40:37 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-27 19:40:37 +0000 |
commit | 737117e416225bb648f7e60034a093ed385f9b8f (patch) | |
tree | 6c56213cb6a302998de79b842f14debca3e0549c /plugins/FTPFileYM | |
parent | 6310a02bfe505209f20aeb96af7515555986dc91 (diff) |
FTPFile: code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@11124 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FTPFileYM')
-rw-r--r-- | plugins/FTPFileYM/curl/lib/http.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/FTPFileYM/curl/lib/http.c b/plugins/FTPFileYM/curl/lib/http.c index 3b18c63115..a147181d5d 100644 --- a/plugins/FTPFileYM/curl/lib/http.c +++ b/plugins/FTPFileYM/curl/lib/http.c @@ -1106,10 +1106,6 @@ CURLcode Curl_add_buffer_send(Curl_send_buffer *in, ptr+headlen, bodylen, conn); } } - if(bodylen) - /* since we sent a piece of the body here, up the byte counter for it - accordingly */ - http->writebytecount += bodylen; /* 'amount' can never be a very large value here so typecasting it so a signed 31 bit value should not cause problems even if ssize_t is @@ -1117,6 +1113,10 @@ CURLcode Curl_add_buffer_send(Curl_send_buffer *in, *bytes_written += (long)amount; if(http) { + if(bodylen) + /* since we sent a piece of the body here, up the byte counter for it + accordingly */ + http->writebytecount += bodylen; if((size_t)amount != size) { /* The whole request could not be sent in one system call. We must queue it up and send it later when we get the chance. We must not |