summaryrefslogtreecommitdiff
path: root/src/curl
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-09 20:36:30 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-09 20:36:30 +0100
commit016551dbb4af5de4725fb67787dff07c852c0280 (patch)
treed7199334658b8caaa51307ddff69d4fe1bb0a661 /src/curl
parenta9b2140b1ece806847aa45a6b95a959c9ddaa7bf (diff)
downloadexchange-016551dbb4af5de4725fb67787dff07c852c0280.tar.gz
exchange-016551dbb4af5de4725fb67787dff07c852c0280.tar.bz2
exchange-016551dbb4af5de4725fb67787dff07c852c0280.zip
misc TODOs for KYC left
Diffstat (limited to 'src/curl')
-rw-r--r--src/curl/curl.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/curl/curl.c b/src/curl/curl.c
index 73fcf86a..e9a2d561 100644
--- a/src/curl/curl.c
+++ b/src/curl/curl.c
@@ -24,6 +24,10 @@
#include "platform.h"
#include "taler_curl_lib.h"
+// FIXME-workaround: without this, we somehow sometimes forget the header
+// that indicates compression and then the exchange 400s us!
+#undef TALER_CURL_COMPRESS_BODIES
+
#if TALER_CURL_COMPRESS_BODIES
#include <zlib.h>
#endif
@@ -76,18 +80,17 @@ TALER_curl_easy_post (struct TALER_CURL_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")));
+ GNUNET_assert (NULL != (ctx->headers = curl_slist_append (
+ ctx->headers,
+ "Content-Encoding: deflate")));
#else
ctx->json_enc = str;
#endif
GNUNET_assert
- (NULL != (ctx->headers = curl_slist_append
- (ctx->headers,
- "Content-Type: application/json")));
+ (NULL != (ctx->headers = curl_slist_append (
+ ctx->headers,
+ "Content-Type: application/json")));
GNUNET_assert (CURLE_OK ==
curl_easy_setopt (eh,