blob: d3eb39b8a84aec9a16618c799f573d130a6246f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- ext/ovirtsdk4c/ov_http_client.c.orig 2023-06-24 11:23:37 UTC
+++ ext/ovirtsdk4c/ov_http_client.c
@@ -998,7 +998,7 @@ static void ov_http_client_prepare_handle(ov_http_clie
/* Set the headers: */
if (!NIL_P(request_ptr->headers)) {
- rb_hash_foreach(request_ptr->headers, ov_http_client_add_header, (VALUE) headers);
+ rb_hash_foreach(request_ptr->headers, (int (*)(VALUE, VALUE, VALUE)) ov_http_client_add_header, (VALUE) headers);
}
curl_easy_setopt(handle, CURLOPT_HTTPHEADER, *headers);
|