summaryrefslogtreecommitdiffstats
path: root/ffserver.c
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-12-22 11:28:56 -0800
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-12-27 00:09:16 -0800
commit0e5c1dc9a32b64e1b3c40025c96717b62b40dfc7 (patch)
tree22d3b3482908ffd3002dae2b8ecbccd50657bf40 /ffserver.c
parentc5b3c4c7417170fb0a5da1e64e1c5dee761c4ff5 (diff)
downloadffmpeg-streaming-0e5c1dc9a32b64e1b3c40025c96717b62b40dfc7.zip
ffmpeg-streaming-0e5c1dc9a32b64e1b3c40025c96717b62b40dfc7.tar.gz
ffserver: make our 404 explicitly HTML5/UTF-8
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c6
1 files changed, 5 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud