]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
headers.h: make Curl_headers_push() be CURLE_OK when not built
authorDaniel Stenberg <daniel@haxx.se>
Wed, 23 Mar 2022 22:54:18 +0000 (23:54 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 23 Mar 2022 23:52:34 +0000 (00:52 +0100)
... to avoid errors when the function isn't there.

Reported-by: Marcel Raad
Fixes #8627
Closes #8628

lib/headers.h

index d6acc03c21d1374eb1ddc0b2fc057d1ce6a54dc6..48c013b04dc6e84ab3af094bfd64d4b8a53c53bf 100644 (file)
@@ -46,7 +46,7 @@ CURLcode Curl_headers_push(struct Curl_easy *data, const char *header,
 CURLcode Curl_headers_cleanup(struct Curl_easy *data);
 
 #else
-#define Curl_headers_push(x,y,z) CURLE_NOT_BUILT_IN
+#define Curl_headers_push(x,y,z) CURLE_OK
 #define Curl_headers_cleanup(x) Curl_nop_stmt
 #endif