Skip to content

Commit

Permalink
Merge pull request #510 from ajkannan/speed-up-tests
Browse files Browse the repository at this point in the history
Speed up resource manager tests
  • Loading branch information
ajkannan committed Dec 28, 2015
2 parents af68f77 + 2530b3c commit 869fed3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ private static void writeResponse(HttpExchange exchange, Response response) {
exchange.getResponseHeaders().set("Content-type", "application/json; charset=UTF-8");
OutputStream outputStream = exchange.getResponseBody();
try {
exchange.getResponseHeaders().add("Connection", "close");
exchange.sendResponseHeaders(response.code(), response.body().length());
outputStream.write(response.body().getBytes(StandardCharsets.UTF_8));
outputStream.close();
Expand Down

0 comments on commit 869fed3

Please sign in to comment.