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 { | ||||
| 	        OutputStream out = new BufferedOutputStream (res.getOutputStream ()); | ||||
| 	        out.write (trans.getContent ()); | ||||
| 	        out.flush (); | ||||
| 	        out.close (); | ||||
| 	    } catch(Exception io_e) { System.out.println ("Error in writeResponse: "+io_e); } | ||||
| 	} | ||||
|     } | ||||
|  |  | |||
|  | @ -222,7 +222,7 @@ public class ServletClient extends HttpServlet{ | |||
| 	    try { | ||||
| 	        OutputStream out = new BufferedOutputStream (res.getOutputStream ()); | ||||
| 	        out.write (trans.getContent ()); | ||||
| 	        out.flush (); | ||||
| 	        out.close (); | ||||
| 	    } catch(Exception io_e) {} | ||||
| 	} | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue