summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_handle.c
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-05-07 14:35:32 +0000
committerng0 <ng0@n0.is>2019-05-07 14:35:32 +0000
commit105555b46975edef914fc39195941cf14d64e760 (patch)
tree81f2529f09a7b66f4510a8f6ef8099ce3ea2acfe /src/lib/exchange_api_handle.c
parent0d8f5035437d5a0daff3505978bc60dad50f55f2 (diff)
parenta16c32a4745634b77439200ee4831fed2811fd8a (diff)
downloadexchange-105555b46975edef914fc39195941cf14d64e760.tar.gz
exchange-105555b46975edef914fc39195941cf14d64e760.tar.bz2
exchange-105555b46975edef914fc39195941cf14d64e760.zip
Merge branch 'master' of git.taler.net:exchange
Diffstat (limited to 'src/lib/exchange_api_handle.c')
-rw-r--r--src/lib/exchange_api_handle.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index cbcde724d..0f3cfe0ae 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -33,6 +33,7 @@
#include "exchange_api_handle.h"
#include "exchange_api_curl_defaults.h"
#include "backoff.h"
+#include "teah_common.h"
/**
* Which revision of the Taler protocol is implemented
@@ -432,7 +433,7 @@ parse_json_signkey (struct TALER_EXCHANGE_SigningPublicKey *sign_key,
*/
static int
parse_json_denomkey (struct TALER_EXCHANGE_DenomPublicKey *denom_key,
- int check_sigs,
+ int check_sigs,
json_t *denom_key_obj,
struct TALER_MasterPublicKeyP *master_key,
struct GNUNET_HashContext *hash_context)
@@ -1783,6 +1784,12 @@ TALER_EXCHANGE_connect
GNUNET_break (GNUNET_OK ==
GNUNET_CURL_append_header (ctx,
"Expect:"));
+#if COMPRESS_BODIES
+ /* Tell exchange we compress bodies */
+ GNUNET_break (GNUNET_OK ==
+ GNUNET_CURL_append_header (ctx,
+ "Content-encoding: deflate"));
+#endif
exchange = GNUNET_new (struct TALER_EXCHANGE_Handle);
exchange->ctx = ctx;
exchange->url = GNUNET_strdup (url);
@@ -1816,6 +1823,7 @@ TALER_EXCHANGE_connect
}
+
/**
* Initiate download of /keys from the exchange.
*