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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/teah_common.c b/src/lib/teah_common.c
index 8f994ef3..1cbe9df7 100644
--- a/src/lib/teah_common.c
+++ b/src/lib/teah_common.c
@@ -78,6 +78,10 @@ TEAH_curl_easy_post (struct TEAH_PostContext *ctx,
slen = (size_t) cbuf_size;
ctx->json_enc = (char *) cbuf;
}
+ GNUNET_assert
+ (NULL != (ctx->headers = curl_slist_append
+ (ctx->headers,
+ "Content-Encoding: deflate")));
#else
ctx->json_enc = str;
#endif