summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--hittpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hittpd.c b/hittpd.c
index 881d9b9..2d47f29 100644
--- a/hittpd.c
+++ b/hittpd.c
@@ -291,7 +291,7 @@ send_error(http_parser *p, int status, const char *msg)
 	    "\r\n",
 	    p->http_minor,
 	    status, msg,
-	    4 + strlen(msg) + 2,
+	    (data->last = 4 + strlen(msg) + 2),
 	    now);
 
 	if (p->method != HTTP_HEAD)