Commit 0495ccdf authored by Maxime Sinclair's avatar Maxime Sinclair
Browse files

[TASK] Remove useless flush

parent bde4d652
...@@ -65,7 +65,6 @@ class DiagramResponse { ...@@ -65,7 +65,6 @@ class DiagramResponse {
response.setContentType(getContentType()); response.setContentType(getContentType());
SourceStringReader reader = new SourceStringReader(uml); SourceStringReader reader = new SourceStringReader(uml);
reader.generateImage(response.getOutputStream(), new FileFormatOption(format)); reader.generateImage(response.getOutputStream(), new FileFormatOption(format));
response.flushBuffer();
} }
void sendMap(String uml) throws IOException { void sendMap(String uml) throws IOException {
...@@ -80,7 +79,6 @@ class DiagramResponse { ...@@ -80,7 +79,6 @@ class DiagramResponse {
for (int i=2; (i+1)<mapLines.length; i++) { for (int i=2; (i+1)<mapLines.length; i++) {
httpOut.print(mapLines[i]); httpOut.print(mapLines[i]);
} }
response.flushBuffer();
} }
private void addHeaderForCache() { private void addHeaderForCache() {
......
...@@ -226,7 +226,6 @@ public class PlantUmlServlet extends HttpServlet { ...@@ -226,7 +226,6 @@ public class PlantUmlServlet extends HttpServlet {
response.setContentType("image/png"); response.setContentType("image/png");
SourceStringReader reader = new SourceStringReader(uml); SourceStringReader reader = new SourceStringReader(uml);
reader.generateImage(response.getOutputStream(), new FileFormatOption(FileFormat.PNG)); reader.generateImage(response.getOutputStream(), new FileFormatOption(FileFormat.PNG));
response.flushBuffer();
} }
private String getContent(String adress) throws IOException { private String getContent(String adress) throws IOException {
......
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