Explorar o código

Update MIME type for KML export

Alan Lam %!s(int64=8) %!d(string=hai) anos
pai
achega
ad60b3dfee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/locations.php

+ 1 - 1
controllers/locations.php

@@ -92,7 +92,7 @@ if(!empty($action)) {
 
 		case "export-kml":
 
-			header("Content-Type: text/xml; charset=utf-8");
+			header("Content-Type: application/vnd.google-earth.kml+xml; charset=utf-8");
 			header("Content-Disposition: attachment; filename=$customer_slug-export.kml");
 
 			$xml = simplexml_load_file(ROOT_DIR . "/files/empty.kml");