From cd48596f8b9a846a47e033742cecdbec040a9549 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 18 Jul 2019 19:18:47 -0400 Subject: insert call to add_to_index() --- blog.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'blog.c') diff --git a/blog.c b/blog.c index aebad3c..dedfad7 100644 --- a/blog.c +++ b/blog.c @@ -89,6 +89,9 @@ int handle_post(void) close(newpost); close(blogdir); + add_to_index(uri, title); + + printf("Status: 302 Found\r\n"); printf("Location: http%s://%s/%s\r\n\r\n", getenv("HTTPS") ? "s" : "", getenv("HTTP_HOST"), uri); return 0; -- cgit v1.2.1