Fixed drop of 'const' when building internal error response

This commit is contained in:
Evgeny Grin (Karlson2k)
2022-04-19 18:55:27 +03:00
parent d3ae3c432d
commit df5b770e21
+2 -3
View File
@@ -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