aboutsummaryrefslogtreecommitdiffstats
path: root/common/http.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-09-08 17:26:02 +0000
committerWerner Koch <[email protected]>2014-09-08 17:26:02 +0000
commit64329cce9a0f21cf941ff2c3f542a08c57cb5378 (patch)
tree2757f807c51b06645bff08cb9c85c72e49b151d9 /common/http.c
parentgpg: Do not show "MD5" and triplicated "RSA" in --version. (diff)
parentgpg: Fix memory leak in ECC encryption. (diff)
downloadgnupg-64329cce9a0f21cf941ff2c3f542a08c57cb5378.tar.gz
gnupg-64329cce9a0f21cf941ff2c3f542a08c57cb5378.zip
Merge branch 'wk/test-gpgrt-estream'
Diffstat (limited to 'common/http.c')
-rw-r--r--common/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/http.c b/common/http.c
index 06461dbb7..fe83e3fbc 100644
--- a/common/http.c
+++ b/common/http.c
@@ -1565,7 +1565,7 @@ send_request (http_t hd, const char *httphost, const char *auth,
if (http_proxy && *http_proxy)
{
- request = es_asprintf
+ request = es_bsprintf
("%s %s://%s:%hu%s%s HTTP/1.0\r\n%s%s",
hd->req_type == HTTP_REQ_GET ? "GET" :
hd->req_type == HTTP_REQ_HEAD ? "HEAD" :
@@ -1585,7 +1585,7 @@ send_request (http_t hd, const char *httphost, const char *auth,
else
snprintf (portstr, sizeof portstr, ":%u", port);
- request = es_asprintf
+ request = es_bsprintf
("%s %s%s HTTP/1.0\r\nHost: %s%s\r\n%s",
hd->req_type == HTTP_REQ_GET ? "GET" :
hd->req_type == HTTP_REQ_HEAD ? "HEAD" :