summaryrefslogtreecommitdiffstats
path: root/ffserver.c
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-12-22 22:24:40 -0800
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2015-12-27 00:09:16 -0800
commitb25ac3c999b0b486018279283667129bbad06d08 (patch)
tree057403595a84a6cdb12c34efd4271e62b785eb27 /ffserver.c
parentdaaa535867274e44d9f8a2a4745343ba66f7200e (diff)
downloadffmpeg-streaming-b25ac3c999b0b486018279283667129bbad06d08.zip
ffmpeg-streaming-b25ac3c999b0b486018279283667129bbad06d08.tar.gz
ffserver: add a doctype heading to our HTML pages
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c
index 5c07805..889dbd4 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -818,6 +818,7 @@ static void http_send_too_busy_reply(int fd)
"HTTP/1.0 503 Server too busy\r\n"
"Content-type: text/html\r\n"
"\r\n"
+ "<!DOCTYPE html>\n"
"<html><head><title>Too busy</title></head><body>\r\n"
"<p>The server is too busy to serve your request at "
"this time.</p>\r\n"
@@ -1527,6 +1528,7 @@ static int http_parse_request(HTTPContext *c)
"Location: %s\r\n"
"Content-type: text/html\r\n"
"\r\n"
+ "<!DOCTYPE html>\n"
"<html><head><title>Moved</title></head><body>\r\n"
"You should be <a href=\"%s\">redirected</a>.\r\n"
"</body></html>\r\n",
@@ -1566,6 +1568,7 @@ static int http_parse_request(HTTPContext *c)
"HTTP/1.0 503 Server too busy\r\n"
"Content-type: text/html\r\n"
"\r\n"
+ "<!DOCTYPE html>\n"
"<html><head><title>Too busy</title></head><body>\r\n"
"<p>The server is too busy to serve your request at "
"this time.</p>\r\n"
@@ -1931,6 +1934,7 @@ static void compute_status(HTTPContext *c)
avio_printf(pb, "Pragma: no-cache\r\n");
avio_printf(pb, "\r\n");
+ avio_printf(pb, "<!DOCTYPE html>\n");
avio_printf(pb, "<html><head><title>%s Status</title>\n", program_name);
if (c->stream->feed_filename[0])
avio_printf(pb, "<link rel=\"shortcut icon\" href=\"%s\">\n",
OpenPOWER on IntegriCloud