mirror of
https://github.com/curl/curl.git
synced 2026-05-30 14:17:29 +03:00
http: fix build with cookies and HSTS disabled
All arguments and local variables in `http_header_s` were unused when both `CURL_DISABLE_COOKIES` and `CURL_DISABLE_HSTS` were defined. Closes https://github.com/curl/curl/pull/17753
This commit is contained in:
parent
f37d5f42f2
commit
2a9dfe275d
1 changed files with 6 additions and 0 deletions
|
|
@ -3310,8 +3310,14 @@ static CURLcode http_header_r(struct Curl_easy *data,
|
|||
static CURLcode http_header_s(struct Curl_easy *data,
|
||||
const char *hd, size_t hdlen)
|
||||
{
|
||||
#if !defined(CURL_DISABLE_COOKIES) || !defined(CURL_DISABLE_HSTS)
|
||||
struct connectdata *conn = data->conn;
|
||||
const char *v;
|
||||
#else
|
||||
(void)data;
|
||||
(void)hd;
|
||||
(void)hdlen;
|
||||
#endif
|
||||
|
||||
#if !defined(CURL_DISABLE_COOKIES)
|
||||
v = (data->cookies && data->state.cookie_engine) ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue