Skip to content

Commit

Permalink
fix: HttpRequestLoggerServer should not keep the connection open
Browse files Browse the repository at this point in the history
Signed-off-by: Masatake Iwasaki <[email protected]>
  • Loading branch information
iwasakims committed Nov 20, 2023
1 parent 4f84c88 commit 64d3a46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void handle(HttpExchange exchange) throws IOException {
System.out.println("Body:");
System.out.println(new String(exchange.getRequestBody().readAllBytes()));
System.out.println("=============");
exchange.sendResponseHeaders(200, 0);
exchange.sendResponseHeaders(200, -1);
}
}

Expand Down

0 comments on commit 64d3a46

Please sign in to comment.