summaryrefslogtreecommitdiff
path: root/usr.sbin/httpd/server_file.c
diff options
context:
space:
mode:
authorAnthony J. Bentley <bentley@cvs.openbsd.org>2020-05-22 07:18:18 +0000
committerAnthony J. Bentley <bentley@cvs.openbsd.org>2020-05-22 07:18:18 +0000
commit05127fa9ee43cb40b9e731443da5bf0bf2632064 (patch)
tree0d2178ae3cc7ecc8a5e49670b79b6665df375c5b /usr.sbin/httpd/server_file.c
parent68e6824e0d3dfc538e48fcff5cf81d74a1d70fd3 (diff)
Use the simpler HTML5 idiom to declare charset in autogenerated pages.
This came from a suggestion by Andras Farkas to replace use of XHTML self-closing tags. ok cwen@ danj@ florian@
Diffstat (limited to 'usr.sbin/httpd/server_file.c')
-rw-r--r--usr.sbin/httpd/server_file.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/httpd/server_file.c b/usr.sbin/httpd/server_file.c
index e568b4503f2..d62590037ae 100644
--- a/usr.sbin/httpd/server_file.c
+++ b/usr.sbin/httpd/server_file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server_file.c,v 1.67 2020/05/18 14:40:06 cwen Exp $ */
+/* $OpenBSD: server_file.c,v 1.68 2020/05/22 07:18:17 bentley Exp $ */
/*
* Copyright (c) 2006 - 2017 Reyk Floeter <reyk@openbsd.org>
@@ -487,8 +487,7 @@ server_file_index(struct httpd *env, struct client *clt, struct stat *st)
"<!DOCTYPE html>\n"
"<html>\n"
"<head>\n"
- "<meta http-equiv=\"Content-Type\" content=\"text/html; "
- "charset=utf-8\"/>\n"
+ "<meta charset=\"utf-8\">\n"
"<title>Index of %s</title>\n"
"<style type=\"text/css\"><!--\n%s\n--></style>\n"
"</head>\n"