From 47268a9ba30fee702589316dec008a2ad43d331b Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sun, 2 Oct 2016 17:10:46 +0100
Subject: [PATCH] actually send content-type header

---
 pam/auth_client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pam/auth_client.c b/pam/auth_client.c
index d5e38fe..4f7245f 100644
--- a/pam/auth_client.c
+++ b/pam/auth_client.c
@@ -183,7 +183,7 @@ int auth_client_authenticate(auth_client_t ac,
   curl_easy_setopt(ac->c, CURLOPT_POSTFIELDSIZE, form.size);
 
   // Set request headers.
-  curl_slist_append(headers, "Content-Type: application/x-form-www-urlencoded");
+  headers = curl_slist_append(headers, "Content-Type: application/x-www-form-urlencoded");
   curl_easy_setopt(ac->c, CURLOPT_HTTPHEADER, headers);
 
   // Iterate over the known servers. We create a new response buffer
-- 
GitLab