fix hang if mod_status is used without mod_fastcgi (fixes #439)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@916 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.11
Jan Kneschke 18 years ago
parent abe6d62a02
commit 7096a842b8

@ -586,6 +586,14 @@ static handler_t mod_status_handle_server_statistics(server *srv, connection *co
buffer *b, *m = p->module_list;
size_t i;
array *st = srv->status;
if (0 == st->used) {
/* we have nothing to send */
con->http_status = 204;
con->file_finished = 1;
return HANDLER_FINISHED;
}
b = chunkqueue_get_append_buffer(con->write_queue);

Loading…
Cancel
Save