]> git.ipfire.org Git - thirdparty/git.git/commit
http-push: prefer CURLOPT_UPLOAD to CURLOPT_PUT
authorJeff King <peff@peff.net>
Tue, 17 Jan 2023 03:04:38 +0000 (22:04 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Jan 2023 16:03:07 +0000 (08:03 -0800)
commit6956015704426f7b636b94cf79a2366ddc4977eb
treee27540067b9769d6e668bca81e3005a460b8ee19
parentc48035d29b4e524aed3a32f0403676f0d9128863
http-push: prefer CURLOPT_UPLOAD to CURLOPT_PUT

The two options do exactly the same thing, but the latter has been
deprecated and in recent versions of curl may produce a compiler
warning. Since the UPLOAD form is available everywhere (it was
introduced in the year 2000 by curl 7.1), we can just switch to it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c