Commit 2d011e23 authored by aadrian's avatar aadrian Committed by PlantUML
Browse files

The ProxyServlet should handle maps too.

parent dcc06f9a
......@@ -93,7 +93,12 @@ public class ProxyServlet extends HttpServlet {
// generate the response
DiagramResponse dr = new DiagramResponse(response, getOutputFormat(fmt), request);
try {
dr.sendDiagram(uml, 0);
// special handling for the MAP since it's not using "#sendDiagram()" like the other types
if ("map".equals(fmt)) {
dr.sendMap(uml, 0);
} else {
dr.sendDiagram(uml, 0);
}
} catch (IIOException e) {
// Browser has closed the connection, so the HTTP OutputStream is closed
// Silently catch the exception to avoid annoying log
......@@ -156,6 +161,10 @@ public class ProxyServlet extends HttpServlet {
if (format.equals("txt")) {
return FileFormat.UTXT;
}
if (format.equals("map")) {
return FileFormat.UTXT;
}
return FileFormat.PNG;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment