]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http: fix build with `CURL_DISABLE_COOKIES`
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 23 Dec 2024 17:34:17 +0000 (18:34 +0100)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 23 Dec 2024 22:13:11 +0000 (23:13 +0100)
This fixes an oversight from commit fc3e1cbc508.

Closes https://github.com/curl/curl/pull/15820

lib/http.c
lib/http.h

index 2bfe8fc8f7afc0334bec2835b78f8a4df324c495..18eba54d899c785ba128dda6f2a48b682fb533b4 100644 (file)
@@ -2154,6 +2154,8 @@ static CURLcode http_cookies(struct Curl_easy *data,
   }
   return result;
 }
+#else
+#define http_cookies(a,b,c) CURLE_OK
 #endif
 
 static CURLcode http_range(struct Curl_easy *data,
index c187e9a11adb4eeb67a95db0c66fcbd993c065b0..691c98e9c527a3133720ae5cabd6793bf0a71ea3 100644 (file)
@@ -82,13 +82,6 @@ CURLcode Curl_dynhds_add_custom(struct Curl_easy *data, bool is_connect,
 
 void Curl_http_method(struct Curl_easy *data, struct connectdata *conn,
                       const char **method, Curl_HttpReq *);
-#ifndef CURL_DISABLE_COOKIES
-CURLcode Curl_http_cookies(struct Curl_easy *data,
-                           struct connectdata *conn,
-                           struct dynbuf *r);
-#else
-#define Curl_http_cookies(a,b,c) CURLE_OK
-#endif
 
 /* protocol-specific functions set up to be called by the main engine */
 CURLcode Curl_http_setup_conn(struct Curl_easy *data,