headers.h: make Curl_headers_push() be CURLE_OK when not built

... to avoid errors when the function isn't there.

Reported-by: Marcel Raad
Fixes #8627
Closes #8628
This commit is contained in:
Daniel Stenberg 2022-03-23 23:54:18 +01:00
parent 8e22fc68e7
commit c2610db63e
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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