Skip to content

Commit

Permalink
Update RootHandler.java
Browse files Browse the repository at this point in the history
  • Loading branch information
waynemorphic authored Mar 14, 2024
1 parent 9974287 commit 33bbd62
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ public void handle(HttpExchange exchange) {
exchange.getResponseHeaders().set("Content-Type", "text/plain");
outputStream.write(response.getBytes());
log.info("Response written successfully: " + response);
outputStream.close();
} catch (IOException e) {
log.severe("Server failed to respond: " + e.getMessage());
}
}
}
}

0 comments on commit 33bbd62

Please sign in to comment.