gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 07/14: Fixed drop of 'const' when building internal erro


From: gnunet
Subject: [libmicrohttpd] 07/14: Fixed drop of 'const' when building internal error response
Date: Tue, 19 Apr 2022 19:31:14 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit df5b770e2123aa6edca8b6a9083723630a987072
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Apr 18 13:07:19 2022 +0300

    Fixed drop of 'const' when building internal error response
---
 src/microhttpd/connection.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 792337a4..eac75824 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -2391,9 +2391,8 @@ transmit_error_response_len (struct MHD_Connection 
*connection,
     MHD_destroy_response (connection->response);
     connection->response = NULL;
   }
-  response = MHD_create_response_from_buffer (message_len,
-                                              (void *) message,
-                                              MHD_RESPMEM_PERSISTENT);
+  response = MHD_create_response_from_buffer_static (message_len,
+                                                     message);
   if (NULL == response)
   {
 #ifdef HAVE_MESSAGES

-- 
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]