Skip to content

Commit

Permalink
Close on clone while closing
Browse files Browse the repository at this point in the history
  • Loading branch information
fireduck64 committed Aug 31, 2020
1 parent f2800bc commit 11275e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/webserver/WebContext.java
Expand Up @@ -100,15 +100,18 @@ public void close()
byte[] data = output_buffer.toByteArray();
OutputStream out = http_exchange.getResponseBody();
out.write(data);
out.close();
out_written = true;
}

http_exchange.getResponseBody().flush();
http_exchange.getResponseBody().close();
}
catch(java.io.IOException e)
{
logger.info(e.toString());
}


}

}

0 comments on commit 11275e4

Please sign in to comment.