mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-25 01:54:26 +01:00
Fix length for empty response to prevent chunked stream
The java HttpExchange expects length -1 to send Content-length: 0 ...
This commit is contained in:
@@ -59,7 +59,7 @@ public class HttpServerHandler {
|
||||
|
||||
httpExchange.getResponseBody().write(byteResponse);
|
||||
} else {
|
||||
httpExchange.sendResponseHeaders(status, 0);
|
||||
httpExchange.sendResponseHeaders(status, -1);
|
||||
}
|
||||
|
||||
httpExchange.getResponseBody().close();
|
||||
|
||||
Reference in New Issue
Block a user