mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-30 16:19:56 +08:00
Fix 200 OK given when response is not 200 OK
This commit is contained in:
parent
aacbdc2d53
commit
652c700d1a
@ -94,7 +94,7 @@ public class WebServer {
|
||||
Response response = getResponse(target, user);
|
||||
|
||||
String content = response.getContent();
|
||||
exchange.sendResponseHeaders(200, 0);
|
||||
exchange.sendResponseHeaders(response.getCode(), 0);
|
||||
|
||||
try (BufferedOutputStream out = new BufferedOutputStream(exchange.getResponseBody());
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(content.getBytes())) {
|
||||
|
Loading…
Reference in New Issue
Block a user