mirror of
https://github.com/Netflix/dial-reference.git
synced 2026-06-08 10:59:59 +00:00
Jira SDK-5323, change MIME type from application/xml to text/xml
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user