summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--hittpd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hittpd.c b/hittpd.c
index 73c7f73..c948590 100644
--- a/hittpd.c
+++ b/hittpd.c
@@ -288,6 +288,8 @@ send_dir_redirect(http_parser *p)
 
 	// XXX include redirect link?
 
+	data->last = data->first = 0;
+
 	write(data->fd, buf, len);
 	accesslog(p, 301);
 }