From 074fd8e39e979794d4a21be8e27eb7a584ca8741 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 7 May 2020 22:27:59 +0200 Subject: send_dir_redirect: fix length in access log --- hittpd.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- cgit 1.4.1