switched from system to java variable
This commit is contained in:
parent
7ead35e3f8
commit
48d474d34c
3 changed files with 6 additions and 6 deletions
|
|
@ -40,7 +40,7 @@ public class ServerHandler extends RequestHandler {
|
|||
|
||||
private RoutingContext rc;
|
||||
|
||||
private static boolean useOldServerFormat = System.getenv("USEOLDSERVERFORMAT") != null;
|
||||
private static boolean useRFCMimeType = Boolean.getBoolean("useRFCMimeType");
|
||||
|
||||
public ServerHandler(ServiceContext serviceContext, Map<String, String> params) {
|
||||
super(serviceContext, params);
|
||||
|
|
@ -109,10 +109,10 @@ public class ServerHandler extends RequestHandler {
|
|||
} else if ("kml".equals(format)) {
|
||||
result = "application/vnd.google-earth.kml+xml";
|
||||
} else if ("geojson".equals(format)) {
|
||||
if (useOldServerFormat)
|
||||
result = "application/vnd.geo+json";
|
||||
else
|
||||
if (useRFCMimeType)
|
||||
result = "application/geo+json";
|
||||
else
|
||||
result = "application/vnd.geo+json";
|
||||
} else if ("csv".equals(format)) {
|
||||
result = "text/tab-separated-values";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue