From 69f1863d899f93a380fbe6be7a73a6467b2a61c3 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Fri, 17 May 2019 16:30:37 +0200 Subject: Compression. Inclusion of 'content-encoding: deflate' header now (really) happens per request, and not "per state" (where any request got this header appended and broke those unaware requests that didn't compress their data.) --- src/lib/teah_common.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/teah_common.c') diff --git a/src/lib/teah_common.c b/src/lib/teah_common.c index 1cbe9df78..f3e1cfeb5 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, -- cgit v1.2.3