ffserver: make our 404 explicitly HTML5/UTF-8
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Tue, 22 Dec 2015 19:28:56 +0000 (11:28 -0800)
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Sun, 27 Dec 2015 08:09:16 +0000 (00:09 -0800)
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
ffserver.c

index c7dbb16..0dd3c70 100644 (file)
@@ -1758,8 +1758,12 @@ static int http_parse_request(HTTPContext *c)
                   "HTTP/1.0 404 Not Found\r\n"
                   "Content-type: text/html\r\n"
                   "\r\n"
+                  "<!DOCTYPE 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"
                   "</html>\n", msg);
     q += strlen(q);