From 8fb0184621448f8c536a7c9a6000587345a0d8e7 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 9 May 2020 18:54:23 +0200 Subject: send_dir_redirect: send newline too --- hittpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hittpd.c b/hittpd.c index 33826f1..122d28d 100644 --- a/hittpd.c +++ b/hittpd.c @@ -356,7 +356,7 @@ send_dir_redirect(http_parser *p) snprintf(headers, sizeof headers, "Location: %s/\r\n", data->path); send_response(p, 301, "Moved Permanently", headers, - "301 Moved Permanently"); + "301 Moved Permanently\r\n"); } void -- cgit 1.4.1