[FFmpeg-cvslog] ffserver: make our 404 explicitly HTML5/UTF-8

Reynaldo H. Verdejo Pinochet git at videolan.org
Sun Dec 27 09:19:58 CET 2015


ffmpeg | branch: master | Reynaldo H. Verdejo Pinochet <reynaldo at osg.samsung.com> | Tue Dec 22 11:28:56 2015 -0800| [0e5c1dc9a32b64e1b3c40025c96717b62b40dfc7] | committer: Reynaldo H. Verdejo Pinochet

ffserver: make our 404 explicitly HTML5/UTF-8

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo at osg.samsung.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0e5c1dc9a32b64e1b3c40025c96717b62b40dfc7
---

 ffserver.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ffserver.c b/ffserver.c
index c7dbb16..0dd3c70 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -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);



More information about the ffmpeg-cvslog mailing list