junlapong / kaptcha

Automatically exported from code.google.com/p/kaptcha
Other
0 stars 0 forks source link

A bug in KaptchaServlet class. #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
try{
  out.flush();
}finally{
  out.close();
}
The "close" method should not be called.After the method been called,the
cookie can not be used.
By the way,the ServletOutputStream instance will be closed by container
automatically.

Original issue reported on code.google.com by winad...@gmail.com on 22 Nov 2009 at 11:04

GoogleCodeExporter commented 9 years ago
Ok, I have removed the flush and the close.

Original comment by latch...@gmail.com on 23 Nov 2009 at 8:20