Fix content type issue in ResourceRegionHttpMessageWriter
ResourceRegionHttpMessageWriter no longer extends from EncoderHttpMessageWriter freeing it to pass the correct content type into the encoder. Considering that the main benefit of EncoderHttpMessageWriter is to deal with content type fallback cases, there is nothing to be missed. Furthermore ResourceRegionHttpMessageWriter is a package private class that is used internally within ResourceHttpMessageWriter and never exposed externally as a an actual HttpMessageWriter. Issue: SPR-15358
This commit is contained in:
@@ -26,7 +26,6 @@ import java.util.List;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import reactor.core.publisher.Flux;
|
||||
import reactor.core.publisher.Mono;
|
||||
@@ -538,7 +537,6 @@ public class ResourceWebHandlerTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Until issue resolved: ResourceRegion should not use response content-type")
|
||||
public void partialContentMultipleByteRanges() throws Exception {
|
||||
MockServerWebExchange exchange = MockServerHttpRequest.get("").header("Range", "bytes=0-1, 4-5, 8-9").toExchange();
|
||||
setPathWithinHandlerMapping(exchange, "foo.txt");
|
||||
|
||||
Reference in New Issue
Block a user