diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-25 22:58:40 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-25 22:58:40 +0200 |
commit | 6a93bbf5b1dd37db542b1813da3d805bb02ffbef (patch) | |
tree | 264155c4c5599195c446812cb4f0081530c0ea53 /src | |
parent | 07d451f79110dd98bb2ff8c1cf107745edbe92ce (diff) | |
download | gnunet-6a93bbf5b1dd37db542b1813da3d805bb02ffbef.tar.gz gnunet-6a93bbf5b1dd37db542b1813da3d805bb02ffbef.zip |
NAMESTORE/REST: no HTTP_OK on failure...
Diffstat (limited to 'src')
-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); |