Skip to content

Commit 0126f3a

Browse files
committed
Update BufferedOutStream.java
1 parent bcca2cd commit 0126f3a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

avaje-jex/src/main/java/io/avaje/jex/core/BufferedOutStream.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@ public void write(byte[] b, int off, int len) throws IOException {
5656

5757
/** Use the underlying OutputStream. Chunking the response if needed */
5858
private void useJdkOutput() throws IOException {
59-
final var exchange = context.exchange();
6059
// if a manual content-length is set, honor that instead of chunking
6160
var length = context.responseHeader(Constants.CONTENT_LENGTH);
62-
exchange.sendResponseHeaders(context.statusCode(), length == null ? 0 : Long.parseLong(length));
61+
context.exchange().sendResponseHeaders(context.statusCode(), length == null ? 0 : Long.parseLong(length));
6362
jdkOutput = true;
6463
// empty the existing buffer
6564
if (buffer != null) {

0 commit comments

Comments
 (0)