[BUGFIX] Trick to avoid a lot of IllegalStateException

This commit is contained in:
maximesinclair
2013-10-31 22:54:53 +01:00
parent d7192bf8e0
commit ac9d0e02ca
3 changed files with 4 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ public class ProxyServlet extends HttpServlet {
SourceStringReader reader = new SourceStringReader(getSource(source));
int n = num == null ? 0 : Integer.parseInt(num);
reader.generateImage(response.getOutputStream(), n, new FileFormatOption(getOutputFormat()));
reader.generateImage(response.getOutputStream(), n, new FileFormatOption(getOutputFormat(), false));
}
private String getSource(String uri) throws IOException {