aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-01-04 20:40:52 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2022-01-04 20:40:52 +0100
commita5c4bbef1fc94e4c5fd5b97032eb4dafa3b25632 (patch)
tree3484ed2df2e90543183bd884cceaa85c6db05afd
parentbb6042d2e04c127d175ceabb4070fa8df4519c8b (diff)
downloadgnunet-a5c4bbef1fc94e4c5fd5b97032eb4dafa3b25632.tar.gz
gnunet-a5c4bbef1fc94e4c5fd5b97032eb4dafa3b25632.zip
-fix legacy
-rw-r--r--src/namestore/gnunet-namestore-fcfsd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/namestore/gnunet-namestore-fcfsd.c b/src/namestore/gnunet-namestore-fcfsd.c
index 56961deb5..5b13e50ff 100644
--- a/src/namestore/gnunet-namestore-fcfsd.c
+++ b/src/namestore/gnunet-namestore-fcfsd.c
@@ -789,7 +789,11 @@ create_response (void *cls,
789 "message", _ ("unable to process submitted data"), 789 "message", _ ("unable to process submitted data"),
790 NULL); 790 NULL);
791 rd->body_length = strlen (rd->body); 791 rd->body_length = strlen (rd->body);
792#ifdef MHD_HTTP_CONTENT_TOO_LARGE
792 rd->code = MHD_HTTP_CONTENT_TOO_LARGE; 793 rd->code = MHD_HTTP_CONTENT_TOO_LARGE;
794#else
795 rd->code = MHD_HTTP_PAYLOAD_TOO_LARGE;
796#endif
793 return MHD_YES; 797 return MHD_YES;
794 case GNUNET_JSON_PR_JSON_INVALID: 798 case GNUNET_JSON_PR_JSON_INVALID:
795 rd->body = make_json ("error", "true", 799 rd->body = make_json ("error", "true",