From: Schanzenbach, Martin Date: Thu, 25 Apr 2019 20:58:40 +0000 (+0200) Subject: NAMESTORE/REST: no HTTP_OK on failure... X-Git-Tag: v0.11.4~92^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6a93bbf5b1dd37db542b1813da3d805bb02ffbef;p=oweals%2Fgnunet.git NAMESTORE/REST: no HTTP_OK on failure... --- 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);