summaryrefslogtreecommitdiff
path: root/blog.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-07-18 19:18:47 -0400
committerJakob Kaivo <jkk@ung.org>2019-07-18 19:18:47 -0400
commitcd48596f8b9a846a47e033742cecdbec040a9549 (patch)
tree1779b16b9a7f002d86cd1b79411ba454bf1ab0d5 /blog.c
parente8b3f24226dd1294cbf6d6e3a0ff2eb8a5403bd1 (diff)
insert call to add_to_index()
Diffstat (limited to 'blog.c')
-rw-r--r--blog.c3
1 files changed, 3 insertions, 0 deletions
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;