osmoscope/brouter_suspects integration

This commit is contained in:
Arndt Brenschede 2019-03-18 16:03:15 +01:00
parent 0ca83f5bfc
commit 5ba717bcbb
2 changed files with 117 additions and 26 deletions

View file

@ -173,7 +173,7 @@ public class RouteServer extends Thread
}
else if ( url.startsWith( "/brouter/suspects" ) )
{
writeHttpHeader(bw, "text/html");
writeHttpHeader(bw, url.endsWith( ".json" ) ? "application/json" : "text/html");
SuspectManager.process( url, bw );
return;
}