Skip to content

Commit

Permalink
corrected an error
Browse files Browse the repository at this point in the history
fix #54
fix #123
  • Loading branch information
Julian Psotta committed Feb 22, 2018
1 parent b3fc82b commit 3e62d96
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,7 @@ public void process(HttpServletResponse response) throws Exception {
JSONObject json = null;
JSONObject geojson = null;
String gpx;
String respFormat;
// Try to access the format parameter. Format is crucial for the output hence if it is not set or it is malformed, an ParameterValueException is raised.
try {
respFormat = _request.getParameter("format").toLowerCase();
} catch (Exception e) {
throw new ParameterValueException(2003, "format");
}
String respFormat = _request.getParameter("format");
String geometryFormat = rreq.getGeometryFormat();

if (Helper.isEmpty(respFormat) || "json".equalsIgnoreCase(respFormat)) {
Expand Down

0 comments on commit 3e62d96

Please sign in to comment.