summaryrefslogtreecommitdiff
path: root/src/lib/teah_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/teah_common.c')
-rw-r--r--src/lib/teah_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/teah_common.c b/src/lib/teah_common.c
index 1cbe9df7..f3e1cfeb 100644
--- a/src/lib/teah_common.c
+++ b/src/lib/teah_common.c
@@ -85,6 +85,12 @@ TEAH_curl_easy_post (struct TEAH_PostContext *ctx,
#else
ctx->json_enc = str;
#endif
+
+ GNUNET_assert
+ (NULL != (ctx->headers = curl_slist_append
+ (ctx->headers,
+ "Content-Type: application/json")));
+
GNUNET_assert (CURLE_OK ==
curl_easy_setopt (eh,
CURLOPT_POSTFIELDS,