diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-12-01 19:27:50 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-12-01 19:27:50 +0100 |
commit | ddf4eba34eba6e9240e476a3666a162c07b35303 (patch) | |
tree | 0592456755cc30ced310858ece65f7912f35dbb5 | |
parent | 0caeb24743eabc50d5d96d876aa36d815c26cbc6 (diff) | |
download | sync-ddf4eba34eba6e9240e476a3666a162c07b35303.tar.gz sync-ddf4eba34eba6e9240e476a3666a162c07b35303.tar.bz2 sync-ddf4eba34eba6e9240e476a3666a162c07b35303.zip |
fix #6658
-rw-r--r-- | src/sync/sync-httpd.c | 15 |
1 files 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", "<html><title>404: not found</title></html>", 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)) |