ffserver: make our 404 explicitly HTML5/UTF-8

Signed-off-by: 's avatarReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
parent c5b3c4c7
...@@ -1758,8 +1758,12 @@ static int http_parse_request(HTTPContext *c) ...@@ -1758,8 +1758,12 @@ static int http_parse_request(HTTPContext *c)
"HTTP/1.0 404 Not Found\r\n" "HTTP/1.0 404 Not Found\r\n"
"Content-type: text/html\r\n" "Content-type: text/html\r\n"
"\r\n" "\r\n"
"<!DOCTYPE html>\n"
"<html>\n" "<html>\n"
"<head><title>404 Not Found</title></head>\n" "<head>\n"
"<meta charset="UTF-8">\n"
"<title>404 Not Found</title>\n"
"</head>\n"
"<body>%s</body>\n" "<body>%s</body>\n"
"</html>\n", msg); "</html>\n", msg);
q += strlen(q); q += strlen(q);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment