File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed 
test/fixtures/azure-fixture/src/main/java/fixture/azure Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 3030import  java .io .ByteArrayOutputStream ;
3131import  java .io .IOException ;
3232import  java .io .InputStreamReader ;
33- import  java .io .OutputStream ;
3433import  java .nio .charset .StandardCharsets ;
3534import  java .time .ZoneId ;
3635import  java .time .ZonedDateTime ;
@@ -363,9 +362,7 @@ public void handle(final HttpExchange exchange) throws IOException {
363362                    exchange .getResponseHeaders ().add ("Content-Type" , "multipart/mixed; boundary="  + responseBoundary );
364363                    exchange .sendResponseHeaders (RestStatus .ACCEPTED .getStatus (), response .length ());
365364                    logger .debug ("--> Sending response:\n {}" , response );
366-                     try  (OutputStream  responseBody  = exchange .getResponseBody ()) {
367-                         responseBody .write (response .toString ().getBytes (StandardCharsets .UTF_8 ));
368-                     }
365+                     exchange .getResponseBody ().write (response .toString ().getBytes (StandardCharsets .UTF_8 ));
369366                }
370367            } else  {
371368                logger .warn ("--> Unrecognised request received: {}" , request );
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments