replaced flush() with close()
This commit is contained in:
parent
6b52e4a797
commit
8eb28ffd2e
2 changed files with 2 additions and 2 deletions
|
@ -173,7 +173,7 @@ public class AcmeServletClient extends HttpServlet{
|
||||||
try {
|
try {
|
||||||
OutputStream out = new BufferedOutputStream (res.getOutputStream ());
|
OutputStream out = new BufferedOutputStream (res.getOutputStream ());
|
||||||
out.write (trans.getContent ());
|
out.write (trans.getContent ());
|
||||||
out.flush ();
|
out.close ();
|
||||||
} catch(Exception io_e) { System.out.println ("Error in writeResponse: "+io_e); }
|
} catch(Exception io_e) { System.out.println ("Error in writeResponse: "+io_e); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -222,7 +222,7 @@ public class ServletClient extends HttpServlet{
|
||||||
try {
|
try {
|
||||||
OutputStream out = new BufferedOutputStream (res.getOutputStream ());
|
OutputStream out = new BufferedOutputStream (res.getOutputStream ());
|
||||||
out.write (trans.getContent ());
|
out.write (trans.getContent ());
|
||||||
out.flush ();
|
out.close ();
|
||||||
} catch(Exception io_e) {}
|
} catch(Exception io_e) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue