From b95456f4e26b602a027433f06cbff33e7afa3317 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 5 May 2019 17:08:21 +0200 Subject: mime: acknowledge CURL_DISABLE_MIME --- lib/http.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/http.c') diff --git a/lib/http.c b/lib/http.c index b09dc648a..328b17ee1 100644 --- a/lib/http.c +++ b/lib/http.c @@ -2174,6 +2174,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) http->sendit = NULL; } +#ifndef CURL_DISABLE_MIME if(http->sendit) { const char *cthdr = Curl_checkheaders(conn, "Content-Type"); @@ -2198,6 +2199,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) return result; http->postsize = Curl_mime_size(http->sendit); } +#endif ptr = Curl_checkheaders(conn, "Transfer-Encoding"); if(ptr) { @@ -2766,6 +2768,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) return result; } +#ifndef CURL_DISABLE_MIME /* Output mime-generated headers. */ { struct curl_slist *hdr; @@ -2776,6 +2779,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) return result; } } +#endif /* For really small posts we don't use Expect: headers at all, and for the somewhat bigger ones we allow the app to disable it. Just make -- cgit v1.2.3