diff options
author | Leah Neukirchen <leah@vuxu.org> | 2020-05-09 18:54:23 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-05-09 18:54:23 +0200 |
commit | 8fb0184621448f8c536a7c9a6000587345a0d8e7 (patch) | |
tree | 3592d44305073f0f47ab73f138b3d4829a12f8e5 | |
parent | 9aa5da97d70cdf10a8ccb2ffdb9ccbcb2784c6ed (diff) | |
download | hittpd-8fb0184621448f8c536a7c9a6000587345a0d8e7.tar.gz hittpd-8fb0184621448f8c536a7c9a6000587345a0d8e7.tar.xz hittpd-8fb0184621448f8c536a7c9a6000587345a0d8e7.zip |
send_dir_redirect: send newline too
-rw-r--r-- | hittpd.c | 2 |
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 |