1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-12-22 08:48:54 +00:00

[TASK] Remove useless flush

This commit is contained in:
Maxime Sinclair 2013-09-24 12:36:05 +02:00
parent bde4d652dd
commit 0495ccdfc2
2 changed files with 0 additions and 3 deletions

View File

@ -65,7 +65,6 @@ class DiagramResponse {
response.setContentType(getContentType());
SourceStringReader reader = new SourceStringReader(uml);
reader.generateImage(response.getOutputStream(), new FileFormatOption(format));
response.flushBuffer();
}
void sendMap(String uml) throws IOException {
@ -80,7 +79,6 @@ class DiagramResponse {
for (int i=2; (i+1)<mapLines.length; i++) {
httpOut.print(mapLines[i]);
}
response.flushBuffer();
}
private void addHeaderForCache() {

View File

@ -226,7 +226,6 @@ public class PlantUmlServlet extends HttpServlet {
response.setContentType("image/png");
SourceStringReader reader = new SourceStringReader(uml);
reader.generateImage(response.getOutputStream(), new FileFormatOption(FileFormat.PNG));
response.flushBuffer();
}
private String getContent(String adress) throws IOException {