Fixed range-request tests after merge.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2023-05-05 11:05:40 +02:00
parent d0b49ff4f8
commit 7e6de2512c
No known key found for this signature in database
GPG Key ID: 1677D141BCF3584D
2 changed files with 0 additions and 2 deletions

View File

@ -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;

View File

@ -31,7 +31,6 @@ import org.junit.jupiter.api.extension.ExtendWith;
@ExtendWith(WorkDirExtension.class)
public class RFC2616NIOHttpsTest extends RFC2616BaseTest
{
private static XmlBasedJettyServer xmlBasedJettyServer;
@BeforeAll