Strabon

changeset 176:1d7ebafc223f

pico.kml gets served upon KML request - legit
author Michael Sioutis
date Tue May 22 15:51:40 2012 +0300 (2012-05-22)
parents f986c0fce749
children 2192aa4a6418
files endpoint/src/main/java/eu/earthobservatory/org/StrabonEndpoint/QueryBean.java
line diff
     1.1 --- a/endpoint/src/main/java/eu/earthobservatory/org/StrabonEndpoint/QueryBean.java	Tue May 22 15:44:19 2012 +0300
     1.2 +++ b/endpoint/src/main/java/eu/earthobservatory/org/StrabonEndpoint/QueryBean.java	Tue May 22 15:51:40 2012 +0300
     1.3 @@ -134,7 +134,7 @@
     1.4  			response.setContentType("text/xml; charset=UTF-8");
     1.5  			hive.setFormat("XML");
     1.6  		} else if (reqFormat.equalsIgnoreCase("KML")) {
     1.7 -			response.setContentType("text/plain; charset=UTF-8");
     1.8 +			response.setContentType("application/vnd.google-earth.kml+xml; charset=UTF-8");
     1.9                          response.setHeader("Content-Disposition","attachment;filename=pico.kml");
    1.10  			hive.setFormat("KML");
    1.11  		} else if (reqFormat.equalsIgnoreCase("KMZ")) {