diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-11-19 12:51:32 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-11-19 12:51:32 +0100 |
commit | b2e9f4696e3bd2286cab2d3926b23ffce465ce65 (patch) | |
tree | 572d81153e01cb5899ffc4cd0d0ae609ee280aa7 | |
parent | f629d75f40376c4caa1cc96c6a1da7cecfafd37c (diff) | |
download | curl-bagder/hyper-haproxy.tar.gz |
fixup Curl_buffer_send use with hyperbagder/hyper-haproxy
-rw-r--r-- | lib/http.c | 12 |
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 |