Skip to content

Commit

Permalink
http_client: CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE was added in libcurl…
Browse files Browse the repository at this point in the history
… 7.49.0

- if not supported, fallback to default http version
  • Loading branch information
anomarme committed Mar 23, 2024
1 parent a03dd2f commit 0fb15fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/http_client/http_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,11 @@ static int w_http_get_script(
return ki_http_request_helper(_m, &met, &url, &body, &hdrs, 0, dst);
}

/* CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE added in libcurl 7.49.0 */
#if LIBCURL_VERSION_NUM < 0x073100
#define CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE 0
#endif

/*!
* KEMI function to perform request with headers and body
*/
Expand Down

0 comments on commit 0fb15fe

Please sign in to comment.