summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-05-09 18:54:23 +0200
committerLeah Neukirchen <leah@vuxu.org>2020-05-09 18:54:23 +0200
commit8fb0184621448f8c536a7c9a6000587345a0d8e7 (patch)
tree3592d44305073f0f47ab73f138b3d4829a12f8e5
parent9aa5da97d70cdf10a8ccb2ffdb9ccbcb2784c6ed (diff)
downloadhittpd-8fb0184621448f8c536a7c9a6000587345a0d8e7.tar.gz
hittpd-8fb0184621448f8c536a7c9a6000587345a0d8e7.tar.xz
hittpd-8fb0184621448f8c536a7c9a6000587345a0d8e7.zip
send_dir_redirect: send newline too
-rw-r--r--hittpd.c2
1 files changed, 1 insertions, 1 deletions
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