]> git.99rst.org Git - git.git/commit
http-push: prefer CURLOPT_UPLOAD to CURLOPT_PUT
authorJeff King <redacted>
Tue, 17 Jan 2023 03:04:38 +0000 (22:04 -0500)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
http-push.c
git clone https://git.99rst.org/PROJECT