Jira SDK-5323, change MIME type from application/xml to text/xml

This commit is contained in:
jcli
2017-03-05 10:57:07 -08:00
parent 0d6e141c2b
commit c7a3afa8a4
2 changed files with 2 additions and 2 deletions

View File

@@ -232,7 +232,7 @@ static void handle_app_status(struct mg_connection *conn,
mg_printf( mg_printf(
conn, conn,
"HTTP/1.1 200 OK\r\n" "HTTP/1.1 200 OK\r\n"
"Content-Type: application/xml\r\n" "Content-Type: text/xml\r\n"
"Access-Control-Allow-Origin: %s\r\n" "Access-Control-Allow-Origin: %s\r\n"
"\r\n" "\r\n"
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n" "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"

View File

@@ -96,7 +96,7 @@ static void *request_handler(enum mg_event event,
if (!strcmp(request_info->uri, "/dd.xml") && if (!strcmp(request_info->uri, "/dd.xml") &&
!strcmp(request_info->request_method, "GET")) { !strcmp(request_info->request_method, "GET")) {
mg_printf(conn, "HTTP/1.1 200 OK\r\n" mg_printf(conn, "HTTP/1.1 200 OK\r\n"
"Content-Type: application/xml\r\n" "Content-Type: text/xml\r\n"
"Application-URL: http://%s:%d/apps/\r\n" "Application-URL: http://%s:%d/apps/\r\n"
"\r\n", ip_addr, dial_port); "\r\n", ip_addr, dial_port);
mg_printf(conn, ddxml, friendly_name, model_name, uuid); mg_printf(conn, ddxml, friendly_name, model_name, uuid);