diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-01-04 20:40:52 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-01-04 20:40:52 +0100 |
commit | a5c4bbef1fc94e4c5fd5b97032eb4dafa3b25632 (patch) | |
tree | 3484ed2df2e90543183bd884cceaa85c6db05afd | |
parent | bb6042d2e04c127d175ceabb4070fa8df4519c8b (diff) | |
download | gnunet-a5c4bbef1fc94e4c5fd5b97032eb4dafa3b25632.tar.gz gnunet-a5c4bbef1fc94e4c5fd5b97032eb4dafa3b25632.zip |
-fix legacy
-rw-r--r-- | src/namestore/gnunet-namestore-fcfsd.c | 4 |
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", |