From 7e6de2512c596dc8e963a7e5cffad51ff882e407 Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Fri, 5 May 2023 11:05:40 +0200 Subject: [PATCH] Fixed range-request tests after merge. Signed-off-by: Simone Bordet --- .../src/main/java/org/eclipse/jetty/server/ResourceService.java | 1 - .../org/eclipse/jetty/ee10/test/rfcs/RFC2616NIOHttpsTest.java | 1 - 2 files changed, 2 deletions(-) diff --git a/jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceService.java b/jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceService.java index acc71b0de2e..bb29fcaf617 100644 --- a/jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceService.java +++ b/jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceService.java @@ -661,7 +661,6 @@ public class ResourceService // If there are no satisfiable ranges, send a 416 response. if (ranges.isEmpty()) { - response.getHeaders().putLongField(HttpHeader.CONTENT_LENGTH, 0); response.getHeaders().put(HttpHeader.CONTENT_RANGE, ByteRange.toNonSatisfiableHeaderValue(contentLength)); Response.writeError(request, response, callback, HttpStatus.RANGE_NOT_SATISFIABLE_416); return; diff --git a/jetty-ee10/jetty-ee10-tests/jetty-ee10-test-integration/src/test/java/org/eclipse/jetty/ee10/test/rfcs/RFC2616NIOHttpsTest.java b/jetty-ee10/jetty-ee10-tests/jetty-ee10-test-integration/src/test/java/org/eclipse/jetty/ee10/test/rfcs/RFC2616NIOHttpsTest.java index 0a3c1508c8a..845e5c197fd 100644 --- a/jetty-ee10/jetty-ee10-tests/jetty-ee10-test-integration/src/test/java/org/eclipse/jetty/ee10/test/rfcs/RFC2616NIOHttpsTest.java +++ b/jetty-ee10/jetty-ee10-tests/jetty-ee10-test-integration/src/test/java/org/eclipse/jetty/ee10/test/rfcs/RFC2616NIOHttpsTest.java @@ -31,7 +31,6 @@ import org.junit.jupiter.api.extension.ExtendWith; @ExtendWith(WorkDirExtension.class) public class RFC2616NIOHttpsTest extends RFC2616BaseTest { - private static XmlBasedJettyServer xmlBasedJettyServer; @BeforeAll