From ddf4eba34eba6e9240e476a3666a162c07b35303 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 1 Dec 2020 19:27:50 +0100 Subject: fix #6658 --- src/sync/sync-httpd.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/sync/sync-httpd.c b/src/sync/sync-httpd.c index 58b7f99..4608d62 100644 --- a/src/sync/sync-httpd.c +++ b/src/sync/sync-httpd.c @@ -156,11 +156,6 @@ url_handler (void *cls, &SH_handler_terms, MHD_HTTP_OK }, {NULL, NULL, NULL, NULL, 0, 0 } }; - static struct SH_RequestHandler h400 = { - "", NULL, "text/plain", - "Invalid account key", 0, - &SH_MHD_handler_static_response, MHD_HTTP_BAD_REQUEST - }; static struct SH_RequestHandler h404 = { "", NULL, "text/html", "404: not found", 0, @@ -219,11 +214,11 @@ url_handler (void *cls, strlen (ac), &account_pub.eddsa_pub)) { - return SH_MHD_handler_static_response (&h400, - connection, - con_cls, - upload_data, - upload_data_size); + GNUNET_break_op (0); + return TALER_MHD_reply_with_error (connection, + MHD_HTTP_BAD_REQUEST, + TALER_EC_GENERIC_PARAMETER_MALFORMED, + ac); } if (0 == strcasecmp (method, MHD_HTTP_METHOD_OPTIONS)) -- cgit v1.2.3