Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/csync
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@owncloud.com>2014-11-25 12:20:51 +0300
committerKlaas Freitag <freitag@owncloud.com>2014-11-25 12:21:33 +0300
commit3e34d000f238ac717eb2c486ecd6830e3b3079fa (patch)
treee9e917b149c8a11db63b0e2d2a6cae35bbd91552 /csync
parent7f520a6f286101f615344592a976d5b897b2df8b (diff)
Propagator: Add the chunk size to PUT requests.
Diffstat (limited to 'csync')
-rw-r--r--csync/src/httpbf/src/httpbf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/csync/src/httpbf/src/httpbf.c b/csync/src/httpbf/src/httpbf.c
index 40080240e..3c5f2107d 100644
--- a/csync/src/httpbf/src/httpbf.c
+++ b/csync/src/httpbf/src/httpbf.c
@@ -503,6 +503,8 @@ Hbf_State hbf_transfer( ne_session *session, hbf_transfer_t *transfer, const cha
if( transfer->block_cnt > 1 ) {
ne_add_request_header(req, "OC-Chunked", "1");
+ snprintf(buf, sizeof(buf), "%"PRId64, transfer->threshold);
+ ne_add_request_header(req, "OC-Chunk-Size", buf);
}
ne_add_request_header( req, "Content-Type", "application/octet-stream");