mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00: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:
parent
1b029b765f
commit
0c4642aa20
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ public class HttpServerHandler {
|
||||||
|
|
||||||
httpExchange.getResponseBody().write(byteResponse);
|
httpExchange.getResponseBody().write(byteResponse);
|
||||||
} else {
|
} else {
|
||||||
httpExchange.sendResponseHeaders(status, 0);
|
httpExchange.sendResponseHeaders(status, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
httpExchange.getResponseBody().close();
|
httpExchange.getResponseBody().close();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue