summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-11-19 12:51:32 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-11-19 12:51:32 +0100
commitb2e9f4696e3bd2286cab2d3926b23ffce465ce65 (patch)
tree572d81153e01cb5899ffc4cd0d0ae609ee280aa7
parentf629d75f40376c4caa1cc96c6a1da7cecfafd37c (diff)
downloadcurl-bagder/hyper-haproxy.tar.gz
fixup Curl_buffer_send use with hyperbagder/hyper-haproxy
-rw-r--r--lib/http.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/http.c b/lib/http.c
index 58d209584..1bef121a9 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -2372,6 +2372,9 @@ CURLcode Curl_http_bodysend(struct Curl_easy *data, struct connectdata *conn,
#ifndef USE_HYPER
/* Hyper always handles the body separately */
curl_off_t included_body = 0;
+#else
+ /* from this point down, this function should not be used */
+#define Curl_buffer_send(a,b,c,d,e) CURLE_OK
#endif
CURLcode result = CURLE_OK;
struct HTTP *http = data->req.p.http;
@@ -2663,13 +2666,9 @@ CURLcode Curl_http_bodysend(struct Curl_easy *data, struct connectdata *conn,
http->postdata = (char *)&http->postdata;
}
}
-#ifdef USE_HYPER
- result = CURLE_OK;
-#else
/* issue the request */
result = Curl_buffer_send(r, data, &data->info.request_size, included_body,
FIRSTSOCKET);
-#endif
if(result)
failf(data, "Failed sending HTTP POST request");
@@ -2683,14 +2682,9 @@ CURLcode Curl_http_bodysend(struct Curl_easy *data, struct connectdata *conn,
if(result)
return result;
-#ifdef USE_HYPER
- result = CURLE_OK;
-#else
/* issue the request */
result = Curl_buffer_send(r, data, &data->info.request_size, 0,
FIRSTSOCKET);
-#endif
-
if(result)
failf(data, "Failed sending HTTP request");
else