From: Michael Tremer Date: Wed, 29 Jan 2025 18:36:29 +0000 (+0000) Subject: xfer: Don't use chunked encoding for uploads X-Git-Tag: 0.9.30~291 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f1db6a5a4b0dc3ac1b55fe859f4e4c4b604c011;p=pakfire.git xfer: Don't use chunked encoding for uploads This is deprecated in HTTP/2 and on the server side we now live without it. cURL even sends a Content-Length header which is quite helpful. Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/xfer.c b/src/pakfire/xfer.c index 454c533a..91294117 100644 --- a/src/pakfire/xfer.c +++ b/src/pakfire/xfer.c @@ -1580,9 +1580,6 @@ int pakfire_xfer_prepare(struct pakfire_xfer* xfer, struct pakfire_progress* pro return r; } } - - // Upload files chunked - xfer->headers = curl_slist_append(xfer->headers, "Transfer-Encoding: chunked"); break; #ifdef CURL_HAS_WEBSOCKETS