projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1be4984
)
Write a response back. Doesnt work yet as the server is closed hard
author
Dennis Schafroth
<dennis@indexdata.com>
Mon, 28 Mar 2011 13:07:14 +0000
(15:07 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Mon, 28 Mar 2011 13:07:14 +0000
(15:07 +0200)
src/http_command.c
patch
|
blob
|
history
diff --git
a/src/http_command.c
b/src/http_command.c
index
e8bba87
..
750623a
100644
(file)
--- 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 "<exit><status>OK</status></exit>");
+ rs->payload = nmem_strdup(c->nmem, buf);
+ http_send_response(c);
http_close_server(c->server);
}