[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-twister] 01/02: symbol for apikey-sandbox
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-twister] 01/02: symbol for apikey-sandbox |
Date: |
Fri, 07 Jun 2019 13:01:27 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository twister.
commit 69740fffec9be655e6fc99203237b323f0330d00
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Jun 7 12:36:30 2019 +0200
symbol for apikey-sandbox
---
src/twister/taler-twister-service.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/twister/taler-twister-service.c
b/src/twister/taler-twister-service.c
index 1d2143f..c1a445f 100644
--- a/src/twister/taler-twister-service.c
+++ b/src/twister/taler-twister-service.c
@@ -1575,9 +1575,12 @@ create_response (void *cls,
curl_easy_setopt (hr->curl,
CURLOPT_INFILESIZE,
hr->io_len);
+
+ /* This works _response_ headers out. */
curl_easy_setopt (hr->curl,
CURLOPT_HEADERFUNCTION,
&curl_check_hdr);
+
curl_easy_setopt (hr->curl,
CURLOPT_HEADERDATA,
hr);
@@ -1724,10 +1727,19 @@ create_response (void *cls,
return MHD_NO;
}
+ /**
+ * This works _request_ headers out.
+ */
MHD_get_connection_values (con,
MHD_HEADER_KIND,
&con_val_iter,
hr);
+ #ifdef APIKEY_SANDBOX
+ GNUNET_assert
+ (NULL != curl_slist_append
+ (hr->headers,
+ "Authorization: ApiKey sandbox");
+ #endif
curl_easy_setopt (hr->curl,
CURLOPT_HTTPHEADER,
--
To stop receiving notification emails like this one, please contact
address@hidden.