aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-18 13:07:19 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-19 18:55:27 +0300
commitdf5b770e2123aa6edca8b6a9083723630a987072 (patch)
treebecf93027e01d9389cc4d1c5838729f22c427ccd
parentd3ae3c432d1d83bf5d300ca4670aa2626c574496 (diff)
downloadlibmicrohttpd-df5b770e2123aa6edca8b6a9083723630a987072.tar.gz
libmicrohttpd-df5b770e2123aa6edca8b6a9083723630a987072.zip
Fixed drop of 'const' when building internal error response
-rw-r--r--src/microhttpd/connection.c5
1 files 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,
2391 MHD_destroy_response (connection->response); 2391 MHD_destroy_response (connection->response);
2392 connection->response = NULL; 2392 connection->response = NULL;
2393 } 2393 }
2394 response = MHD_create_response_from_buffer (message_len, 2394 response = MHD_create_response_from_buffer_static (message_len,
2395 (void *) message, 2395 message);
2396 MHD_RESPMEM_PERSISTENT);
2397 if (NULL == response) 2396 if (NULL == response)
2398 { 2397 {
2399#ifdef HAVE_MESSAGES 2398#ifdef HAVE_MESSAGES