Browse Source

ffserver: make our 404 explicitly HTML5/UTF-8

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
tags/n3.0
Reynaldo H. Verdejo Pinochet 9 years ago
parent
commit
0e5c1dc9a3
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      ffserver.c

+ 5
- 1
ffserver.c View 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);


Loading…
Cancel
Save