Browse Source

Update MIME type for KML export

Alan Lam 8 năm trước cách đây
mục cha
commit
ad60b3dfee
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  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");