Fixed range-request tests after merge.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
d0b49ff4f8
commit
7e6de2512c
|
@ -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;
|
||||
|
|
|
@ -31,7 +31,6 @@ import org.junit.jupiter.api.extension.ExtendWith;
|
|||
@ExtendWith(WorkDirExtension.class)
|
||||
public class RFC2616NIOHttpsTest extends RFC2616BaseTest
|
||||
{
|
||||
|
||||
private static XmlBasedJettyServer xmlBasedJettyServer;
|
||||
|
||||
@BeforeAll
|
||||
|
|
Loading…
Reference in New Issue