diff options
Diffstat (limited to 'src/namestore/plugin_rest_namestore.c')
-rw-r--r-- | src/namestore/plugin_rest_namestore.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
320 | json_object_set_new(json_error,"error", json_string(handle->emsg)); | 320 | json_object_set_new(json_error,"error", json_string(handle->emsg)); |
321 | 321 | ||
322 | if (0 == handle->response_code) | 322 | if (0 == handle->response_code) |
323 | handle->response_code = MHD_HTTP_OK; | 323 | handle->response_code = MHD_HTTP_INTERNAL_SERVER_ERROR; |
324 | response = json_dumps (json_error, 0); | 324 | response = json_dumps (json_error, 0); |
325 | resp = GNUNET_REST_create_response (response); | 325 | resp = GNUNET_REST_create_response (response); |
326 | handle->proc (handle->proc_cls, resp, handle->response_code); | 326 | handle->proc (handle->proc_cls, resp, handle->response_code); |