summary refs log tree commit diff
path: root/networks.c
diff options
context:
space:
mode:
Diffstat (limited to 'networks.c')
-rw-r--r--networks.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networks.c b/networks.c
index f2f059a..c92da21 100644
--- a/networks.c
+++ b/networks.c
@@ -47,12 +47,13 @@ const char *NetworksQuery = SQL(
 enum kcgi_err networksPage(struct kreq *req) {
 	struct Scope scope = {0};
 
-	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, "Litterbox")
 		|| htmlNav(&html, scope);