diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-07-18 19:18:47 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-07-18 19:18:47 -0400 |
commit | cd48596f8b9a846a47e033742cecdbec040a9549 (patch) | |
tree | 1779b16b9a7f002d86cd1b79411ba454bf1ab0d5 | |
parent | e8b3f24226dd1294cbf6d6e3a0ff2eb8a5403bd1 (diff) |
insert call to add_to_index()
-rw-r--r-- | blog.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |