]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
http: Add missing html tag to 'httpstatus' functionality.
authorJoshua Colp <jcolp@digium.com>
Sat, 21 Feb 2015 14:04:54 +0000 (14:04 +0000)
committerJoshua Colp <jcolp@digium.com>
Sat, 21 Feb 2015 14:04:54 +0000 (14:04 +0000)
ASTERISK-24724 #close
Reported by: Ashley Sanders

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@432078 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/http.c

index 93dfe29f01a8e1c29733b4e598c11e3034365789..c9704ca74bf10cdd394e626cf82e8bdaecd46816 100644 (file)
@@ -337,7 +337,7 @@ static int httpstatus_callback(struct ast_tcptls_session_instance *ser,
        }
 
        ast_str_append(&out, 0,
-               "<title>Asterisk HTTP Status</title>\r\n"
+               "<html><title>Asterisk HTTP Status</title>\r\n"
                "<body bgcolor=\"#ffffff\">\r\n"
                "<table bgcolor=\"#f1f1f1\" align=\"center\"><tr><td bgcolor=\"#e0e0ff\" colspan=\"2\" width=\"500\">\r\n"
                "<h2>&nbsp;&nbsp;Asterisk&trade; HTTP Status</h2></td></tr>\r\n");
@@ -363,7 +363,7 @@ static int httpstatus_callback(struct ast_tcptls_session_instance *ser,
        }
        ast_variables_destroy(cookies);
 
-       ast_str_append(&out, 0, "</table><center><font size=\"-1\"><i>Asterisk and Digium are registered trademarks of Digium, Inc.</i></font></center></body>\r\n");
+       ast_str_append(&out, 0, "</table><center><font size=\"-1\"><i>Asterisk and Digium are registered trademarks of Digium, Inc.</i></font></center></body></html>\r\n");
        ast_http_send(ser, method, 200, NULL, NULL, out, 0, 0);
        return 0;
 }