mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 21:56:44 +00:00
http: use PRIuZ
MSVC doesn't think %zd is a valid specifier.
This commit is contained in:
parent
881e3da012
commit
860de00459
@ -71,7 +71,7 @@ static int gen_request(git_buf *buf, const char *url, const char *host, const ch
|
|||||||
if (content_length > 0) {
|
if (content_length > 0) {
|
||||||
git_buf_printf(buf, "Accept: application/x-git-%s-result\r\n", service);
|
git_buf_printf(buf, "Accept: application/x-git-%s-result\r\n", service);
|
||||||
git_buf_printf(buf, "Content-Type: application/x-git-%s-request\r\n", service);
|
git_buf_printf(buf, "Content-Type: application/x-git-%s-request\r\n", service);
|
||||||
git_buf_printf(buf, "Content-Length: %zd\r\n", content_length);
|
git_buf_printf(buf, "Content-Length: %" PRIuZ "\r\n", content_length);
|
||||||
} else {
|
} else {
|
||||||
git_buf_puts(buf, "Accept: */*\r\n");
|
git_buf_puts(buf, "Accept: */*\r\n");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user