Ver Fonte

Update MIME type for KML export

Alan Lam há 8 anos atrás
pai
commit
ad60b3dfee
1 ficheiros alterados com 1 adições e 1 exclusões
  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");