summaryrefslogtreecommitdiff
path: root/blog.c
diff options
context:
space:
mode:
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;