gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: -fix legacy


From: gnunet
Subject: [gnunet] branch master updated: -fix legacy
Date: Tue, 04 Jan 2022 20:40:57 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new a5c4bbef1 -fix legacy
a5c4bbef1 is described below

commit a5c4bbef1fc94e4c5fd5b97032eb4dafa3b25632
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Tue Jan 4 20:40:52 2022 +0100

    -fix legacy
---
 src/namestore/gnunet-namestore-fcfsd.c | 4 ++++
 1 file changed, 4 insertions(+)

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",

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]