summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-04-19 14:45:18 +0200
committerSimon Rettberg2024-04-19 14:45:18 +0200
commit70223cc1836a5d760d54394d6d839ede3b38be94 (patch)
treeec24aa2c9897cfe65378cdb708e40e0a80cf81f1
parent[FUSE] Use CURLOPT_HEADERFUNCTION instead of curl_easy_header (diff)
downloaddnbd3-70223cc1836a5d760d54394d6d839ede3b38be94.tar.gz
dnbd3-70223cc1836a5d760d54394d6d839ede3b38be94.tar.xz
dnbd3-70223cc1836a5d760d54394d6d839ede3b38be94.zip
[FUSE] Forgot to set header data
-rw-r--r--src/fuse/cowfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fuse/cowfile.c b/src/fuse/cowfile.c
index ac3e40b..f19150a 100644
--- a/src/fuse/cowfile.c
+++ b/src/fuse/cowfile.c
@@ -514,6 +514,7 @@ static bool addUpload( CURLM *cm, cow_curl_read_upload_t *uploadingCluster, stru
curl_easy_setopt( eh, CURLOPT_URL, url );
curl_easy_setopt( eh, CURLOPT_POST, 1L );
curl_easy_setopt( eh, CURLOPT_HEADERFUNCTION, curlHeaderCallbackUploadBlock );
+ curl_easy_setopt( eh, CURLOPT_HEADERDATA, (void *)uploadingCluster );
curl_easy_setopt( eh, CURLOPT_READFUNCTION, curlReadCallbackUploadBlock );
curl_easy_setopt( eh, CURLOPT_READDATA, (void *)uploadingCluster );
curl_easy_setopt( eh, CURLOPT_PRIVATE, (void *)uploadingCluster );