https://github.com/spring-projects/spring-framework/blob/main/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AbstractMessageConverterMethodProcessor.java
The logic to support range requests using ResourceRegions does not seem to consider the If-Range header in http requests.
As per https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Range, this header decides whether partial content should be sent or the full resource needs to be sent back along with appropriate response code.
Currently, this header is ignored and the partial content is always sent with 206 response code
https://github.com/spring-projects/spring-framework/blob/main/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AbstractMessageConverterMethodProcessor.java
The logic to support range requests using ResourceRegions does not seem to consider the If-Range header in http requests.
As per https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Range, this header decides whether partial content should be sent or the full resource needs to be sent back along with appropriate response code.
Currently, this header is ignored and the partial content is always sent with 206 response code