mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-27 04:09:31 +03:00
transmit_error_response(): allow to transmit error even if response was set.
This commit is contained in:
@@ -1340,7 +1340,11 @@ transmit_error_response (struct MHD_Connection *connection,
|
||||
status_code,
|
||||
message);
|
||||
#endif
|
||||
EXTRA_CHECK (NULL == connection->response);
|
||||
if (NULL != connection->response)
|
||||
{
|
||||
MHD_destroy_response (connection->response);
|
||||
connection->response = NULL;
|
||||
}
|
||||
response = MHD_create_response_from_buffer (strlen (message),
|
||||
(void *) message,
|
||||
MHD_RESPMEM_PERSISTENT);
|
||||
|
||||
Reference in New Issue
Block a user