Przeglądaj źródła

Add filename to XML data

z3APA3A 7 lat temu
rodzic
commit
46be58ab1d
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/webadmin.c

+ 2 - 1
src/webadmin.c

@@ -187,7 +187,8 @@ char * admin_stringtable[]={
 	"HTTP/1.0 200 OK\r\n"
 	"HTTP/1.0 200 OK\r\n"
 	"Connection: close\r\n"
 	"Connection: close\r\n"
 	"Cache-Control: no-cache\r\n"
 	"Cache-Control: no-cache\r\n"
-	"Content-type: text/xml\r\n"
+	"Content-type: text/xml; charset=utf-8\r\n"
+	"Content-disposition: inline; filename=running.xml\r\n"
 	"\r\n"
 	"\r\n"
 	"<?xml version=\"1.0\"?>\r\n"
 	"<?xml version=\"1.0\"?>\r\n"
 	"<?xml-stylesheet href=\"/SX\" type=\"text/css\"?>\r\n"
 	"<?xml-stylesheet href=\"/SX\" type=\"text/css\"?>\r\n"