use BufferedWriter in writeResponse
This commit is contained in:
parent
3776509f32
commit
e9e9f81722
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ public class ServletClient extends HttpServlet{
|
|||
res.setContentLength (trans.getContentLength ());
|
||||
res.setContentType (trans.contentType);
|
||||
try {
|
||||
Writer writer = res.getWriter ();
|
||||
Writer writer = new BufferedWriter (res.getWriter ());
|
||||
writer.write (trans.getContentString ());
|
||||
writer.flush ();
|
||||
} catch(Exception io_e) {}
|
||||
|
|
Loading…
Add table
Reference in a new issue