Skip to content

Commit

Permalink
Fixed localized strings for htmlMessageSuccess (AzureAD#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkyc authored Jun 28, 2022
1 parent 9615519 commit 41c0f89
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,11 @@ private void send302Response(HttpExchange httpExchange, String redirectUri) thro
}

private void send200Response(HttpExchange httpExchange, String response) throws IOException {
httpExchange.sendResponseHeaders(200, response.length());
byte[] responseBytes = response.getBytes("UTF-8");
httpExchange.getResponseHeaders().set("Content-Type", "text/html; charset=UTF-8");
httpExchange.sendResponseHeaders(200, responseBytes.length);
OutputStream os = httpExchange.getResponseBody();
os.write(response.getBytes("UTF-8"));
os.write(responseBytes);
os.close();
}

Expand Down

0 comments on commit 41c0f89

Please sign in to comment.