From a5c4bbef1fc94e4c5fd5b97032eb4dafa3b25632 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Tue, 4 Jan 2022 20:40:52 +0100 Subject: -fix legacy --- src/namestore/gnunet-namestore-fcfsd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/namestore') 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, "message", _ ("unable to process submitted data"), NULL); rd->body_length = strlen (rd->body); +#ifdef MHD_HTTP_CONTENT_TOO_LARGE rd->code = MHD_HTTP_CONTENT_TOO_LARGE; +#else + rd->code = MHD_HTTP_PAYLOAD_TOO_LARGE; +#endif return MHD_YES; case GNUNET_JSON_PR_JSON_INVALID: rd->body = make_json ("error", "true", -- cgit v1.2.3