From 6a93bbf5b1dd37db542b1813da3d805bb02ffbef Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Thu, 25 Apr 2019 22:58:40 +0200 Subject: [PATCH] NAMESTORE/REST: no HTTP_OK on failure... --- src/namestore/plugin_rest_namestore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/namestore/plugin_rest_namestore.c b/src/namestore/plugin_rest_namestore.c index cad019292..b25b10493 100644 --- a/src/namestore/plugin_rest_namestore.c +++ b/src/namestore/plugin_rest_namestore.c @@ -320,7 +320,7 @@ do_error (void *cls) json_object_set_new(json_error,"error", json_string(handle->emsg)); if (0 == handle->response_code) - handle->response_code = MHD_HTTP_OK; + handle->response_code = MHD_HTTP_INTERNAL_SERVER_ERROR; response = json_dumps (json_error, 0); resp = GNUNET_REST_create_response (response); handle->proc (handle->proc_cls, resp, handle->response_code); -- 2.25.1