NAMESTORE/REST: no HTTP_OK on failure...
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Thu, 25 Apr 2019 20:58:40 +0000 (22:58 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Thu, 25 Apr 2019 20:58:40 +0000 (22:58 +0200)
src/namestore/plugin_rest_namestore.c

index cad019292a8fa65a89350cdc0736e769e96e7212..b25b10493efdcfcdca29f928987d42eca7e5d9f6 100644 (file)
@@ -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);