From 13c00712a17a80237f3ff811d46f7ea6703b274f Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Mon, 28 Mar 2011 15:07:14 +0200 Subject: [PATCH] Write a response back. Doesnt work yet as the server is closed hard --- src/http_command.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/http_command.c b/src/http_command.c index e8bba87..750623a 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -339,7 +339,12 @@ static int process_settings(struct session *se, struct http_request *rq, static void cmd_exit(struct http_channel *c) { + char buf[1024]; + struct http_response *rs = c->response; yaz_log(YLOG_WARN, "exit"); + sprintf(buf, HTTP_COMMAND_RESPONSE_PREFIX "OK"); + rs->payload = nmem_strdup(c->nmem, buf); + http_send_response(c); http_close_server(c->server); } -- 1.7.10.4