src/de/uhilger/httpserver/base/HttpResponder.java
@@ -89,6 +89,10 @@ public void finish(InputStream in, OutputStream out) throws IOException { in.close(); finish(out); } public void finish(OutputStream out) throws IOException { out.flush(); out.close(); } @@ -132,8 +136,7 @@ exchange.sendResponseHeaders(code, bytes.length); OutputStream os = exchange.getResponseBody(); os.write(bytes); os.flush(); os.close(); finish(os); }