NIFI-237:

- Adding .png extension when appropriate.
This commit is contained in:
Matt Gilman 2015-01-08 12:54:58 -05:00
parent bda9985d6a
commit cb2ceeab79
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ public class ConvertSvg extends HttpServlet {
String filename = request.getParameter("filename");
if (filename == null) {
filename = "image.png";
} else if (!filename.endsWith(".png")) {
filename += ".png";
}
final StringReader reader = new StringReader(svg);