summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rest/rest-proxy-call.c3
-rw-r--r--rest/rest-proxy-call.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index 790cbd1..a4971e4 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -220,12 +220,11 @@ rest_proxy_call_add_header (RestProxyCall *call,
*/
void
rest_proxy_call_add_headers (RestProxyCall *call,
- const char *first_header_name,
...)
{
va_list headers;
- va_start (headers, first_header_name);
+ va_start (headers, call);
rest_proxy_call_add_headers_from_valist (call, headers);
va_end (headers);
}
diff --git a/rest/rest-proxy-call.h b/rest/rest-proxy-call.h
index 8725b67..c4c0237 100644
--- a/rest/rest-proxy-call.h
+++ b/rest/rest-proxy-call.h
@@ -57,7 +57,6 @@ void rest_proxy_call_add_header (RestProxyCall *call,
G_GNUC_NULL_TERMINATED
void rest_proxy_call_add_headers (RestProxyCall *call,
- const char *first_header_name,
...);
void rest_proxy_call_add_headers_from_valist (RestProxyCall *call,