mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-10-31 18:42:30 +00:00
The ProxyServlet should handle maps too.
This commit is contained in:
parent
dcc06f9afc
commit
2d011e233e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user