From 61c4e06650f7f3c41b8402eace94ea8b289cb5fb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 27 Jul 2020 21:33:18 +0200 Subject: use MHD constant --- src/merchant-tools/taler-merchant-setup-reserve.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/merchant-tools/taler-merchant-setup-reserve.c b/src/merchant-tools/taler-merchant-setup-reserve.c index 9e97542f..a8a6f0de 100644 --- a/src/merchant-tools/taler-merchant-setup-reserve.c +++ b/src/merchant-tools/taler-merchant-setup-reserve.c @@ -199,10 +199,11 @@ run (void *cls, char *auth_header; GNUNET_asprintf (&auth_header, - "Authorization: ApiKey %s", + "%s: ApiKey %s", + MHD_HTTP_HEADER_AUTHORIZATION, apikey); GNUNET_CURL_append_header (ctx, - auth_header); + auth_header); GNUNET_free (auth_header); } -- cgit v1.2.3 From cc631a8a3ccc62c4aad52d954321f3cc3149f9b5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 27 Jul 2020 21:34:26 +0200 Subject: ApiKey should be part of the option --- src/merchant-tools/taler-merchant-setup-reserve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/merchant-tools/taler-merchant-setup-reserve.c b/src/merchant-tools/taler-merchant-setup-reserve.c index a8a6f0de..1adc6d4f 100644 --- a/src/merchant-tools/taler-merchant-setup-reserve.c +++ b/src/merchant-tools/taler-merchant-setup-reserve.c @@ -199,7 +199,7 @@ run (void *cls, char *auth_header; GNUNET_asprintf (&auth_header, - "%s: ApiKey %s", + "%s: %s", MHD_HTTP_HEADER_AUTHORIZATION, apikey); GNUNET_CURL_append_header (ctx, -- cgit v1.2.3