X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=http-push.c;h=b4aeae9e2695369c648ba615e182ab5c3f08561b;hb=8cd052ea53b0e125e02a844bf728174a81da60df;hp=331af5ffcb2e2d0ef9dfaba9b6f297fed53fdca9;hpb=4fab049258a294e375431e07f343d1752994fba3;p=thirdparty%2Fgit.git diff --git a/http-push.c b/http-push.c index 331af5ffcb..b4aeae9e26 100644 --- a/http-push.c +++ b/http-push.c @@ -203,8 +203,8 @@ static void curl_setup_http(CURL *curl, const char *url, curl_easy_setopt(curl, CURLOPT_INFILE, buffer); curl_easy_setopt(curl, CURLOPT_INFILESIZE, buffer->buf.len); curl_easy_setopt(curl, CURLOPT_READFUNCTION, fread_buffer); - curl_easy_setopt(curl, CURLOPT_IOCTLFUNCTION, ioctl_buffer); - curl_easy_setopt(curl, CURLOPT_IOCTLDATA, buffer); + curl_easy_setopt(curl, CURLOPT_SEEKFUNCTION, seek_buffer); + curl_easy_setopt(curl, CURLOPT_SEEKDATA, buffer); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_fn); curl_easy_setopt(curl, CURLOPT_NOBODY, 0); curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, custom_req);