[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 02/04: transmit_error_response(): allow to
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 02/04: transmit_error_response(): allow to transmit error even if response was set. |
Date: |
Fri, 05 May 2017 13:34:02 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit ae6ab22d2bbf4add17dafdfde41b0c8769e14fba
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Fri May 5 12:55:47 2017 +0300
transmit_error_response(): allow to transmit error even if response was set.
---
src/microhttpd/connection.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 6ade651c..887511b7 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -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);
--
To stop receiving notification emails like this one, please contact
address@hidden