http-push: prefer CURLOPT_UPLOAD to CURLOPT_PUT
commitfda237cb648b3812f694bdbe899449247610415b
authorJeff King <peff@peff.net>
Tue, 17 Jan 2023 03:04:38 +0000 (16 22:04 -0500)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 12 Mar 2023 19:31:54 +0000 (12 20:31 +0100)
tree173d19cfad47f140368afb0fbd4bd4e96f1f3544
parent394a759d2b5f0a1a1908c820cf142f45cb78718c
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>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
http-push.c