aboutsummaryrefslogtreecommitdiff
path: root/src/lib/auditor_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/auditor_api_handle.c
parent0d8f5035437d5a0daff3505978bc60dad50f55f2 (diff)
parenta16c32a4745634b77439200ee4831fed2811fd8a (diff)
Merge branch 'master' of git.taler.net:exchange
Diffstat (limited to 'src/lib/auditor_api_handle.c')
-rw-r--r--src/lib/auditor_api_handle.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/auditor_api_handle.c b/src/lib/auditor_api_handle.c
index 70bf6f71..870eed83 100644
--- a/src/lib/auditor_api_handle.c
+++ b/src/lib/auditor_api_handle.c
@@ -15,7 +15,7 @@
<http://www.gnu.org/licenses/>
*/
/**
- * @file auditor-lib/auditor_api_handle.c
+ * @file lib/auditor_api_handle.c
* @brief Implementation of the "handle" component of the auditor's HTTP API
* @author Sree Harsha Totakura <sreeharsha@totakura.in>
* @author Christian Grothoff
@@ -462,6 +462,16 @@ TALER_AUDITOR_connect (struct GNUNET_CURL_Context *ctx,
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Connecting to auditor at URL `%s'.\n",
url);
+ /* Disable 100 continue processing */
+ GNUNET_break (GNUNET_OK ==
+ GNUNET_CURL_append_header (ctx,
+ "Expect:"));
+#if COMPRESS_BODIES
+ /* Tell auditor we compress bodies */
+ GNUNET_break (GNUNET_OK ==
+ GNUNET_CURL_append_header (ctx,
+ "Content-encoding: deflate"));
+#endif
auditor = GNUNET_new (struct TALER_AUDITOR_Handle);
auditor->ctx = ctx;
auditor->url = GNUNET_strdup (url);