summary refs log tree commit diff
path: root/events.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--events.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/events.c b/events.c
index 65b869b..e5b0777 100644
--- a/events.c
+++ b/events.c
@@ -201,12 +201,13 @@ enum kcgi_err eventsPage(struct kreq *req) {
 		? req->fieldmap[Before]->parsed.s
 		: req->fieldmap[After]->parsed.s;
 
-	enum kcgi_err error = httpHead(req, KHTTP_200, KMIME_TEXT_HTML);
+	enum kcgi_err error = 0
+		|| httpHead(req, KHTTP_200, KMIME_TEXT_HTML)
+		|| khttp_body(req);
 	if (req->method == KMETHOD_HEAD) return error;
 
 	struct khtmlreq html;
 	error = error
-		|| khttp_body(req)
 		|| khtml_open(&html, req, 0)
 		|| htmlHead(&html, scope.context)
 		|| htmlNav(&html, scope)