diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-06-12 20:11:42 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-06-12 20:11:42 +0200 |
commit | 6204b8cfc054a7a8664ca9065dba6b74d452b67a (patch) | |
tree | 52a180e2e527de4e1b91b164f82fdfad09e96270 /src/lib/merchant_api_track_transaction.c | |
parent | 8c72a69fca47018961c149e980798350964f72a8 (diff) |
including Authorization: header to requests.
Diffstat (limited to 'src/lib/merchant_api_track_transaction.c')
-rw-r--r-- | src/lib/merchant_api_track_transaction.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/merchant_api_track_transaction.c b/src/lib/merchant_api_track_transaction.c index ae5d903f..5462b9a1 100644 --- a/src/lib/merchant_api_track_transaction.c +++ b/src/lib/merchant_api_track_transaction.c @@ -149,6 +149,7 @@ TALER_MERCHANT_track_transaction (struct GNUNET_CURL_Context *ctx, { struct TALER_MERCHANT_TrackTransactionHandle *tdo; CURL *eh; + struct curl_slist *list = NULL; char *base; tdo = GNUNET_new (struct TALER_MERCHANT_TrackTransactionHandle); @@ -170,6 +171,14 @@ TALER_MERCHANT_track_transaction (struct GNUNET_CURL_Context *ctx, curl_easy_setopt (eh, CURLOPT_URL, tdo->url)); + list = curl_slist_append (list, + "Authorization: ApiKey sandbox"); + + GNUNET_assert (CURLE_OK == + curl_easy_setopt (eh, + CURLOPT_HTTPHEADER, + list)); + tdo->job = GNUNET_CURL_job_add (ctx, eh, GNUNET_YES, |