]> 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)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 6 Feb 2023 08:27:08 +0000 (09:27 +0100)
commit4fab049258a294e375431e07f343d1752994fba3
treefcb55068fe0dc376629e91cc4459dff18aa4745a
parentf39fe8fcb269e0b7ec48f2ea57fcb879908ac447
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