diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2018-05-06 20:32:24 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-05-14 09:42:27 +0200 |
commit | eb49683e5591900b0c79fd9649a5aaf5549ea61f (patch) | |
tree | b015e5222e63c65ab6231c40965f04f816d422ae /lib/http.c | |
parent | 4062bc4d3e717a490292500025e842e4d0f90ff1 (diff) | |
download | gnurl-eb49683e5591900b0c79fd9649a5aaf5549ea61f.tar.gz gnurl-eb49683e5591900b0c79fd9649a5aaf5549ea61f.tar.bz2 gnurl-eb49683e5591900b0c79fd9649a5aaf5549ea61f.zip |
lib: Fix format specifiers
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http.c b/lib/http.c index e080ae513..ff1d6813a 100644 --- a/lib/http.c +++ b/lib/http.c @@ -1407,7 +1407,7 @@ static CURLcode add_haproxy_protocol_header(struct connectdata *conn) snprintf(proxy_header, sizeof proxy_header, - "PROXY %s %s %s %i %i\r\n", + "PROXY %s %s %s %li %li\r\n", tcp_version, conn->data->info.conn_local_ip, conn->data->info.conn_primary_ip, @@ -2132,7 +2132,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) host, conn->bits.ipv6_ip?"]":""); else - conn->allocptr.host = aprintf("Host: %s%s%s:%hu\r\n", + conn->allocptr.host = aprintf("Host: %s%s%s:%d\r\n", conn->bits.ipv6_ip?"[":"", host, conn->bits.ipv6_ip?"]":"", |