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

Comment From: bclozel

Hello @ab185034, It think you're a few steps ahead in the process here. Could you share a code snippet with a controller signature, a curl request+response that you've run against a real app, as well as the http response you'd expect instead? Even better, a small sample application on github if you've got the time.

This will help us write a test case for this and schedule a fix quickly.

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.