Skip to content

Range Requests do not take in to account the If-Range header set in the http request #27952

Description

@ab185034

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions