Skip to content

ResourceRegionHttpMessageWriter should not use the response content-type [SPR-15358] #19921

Closed
@spring-projects-issues

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-15358 and commented

When a request includes byte ranges, ResourceHttpMessageWriter delegates to ResourceRegionHttpMessageWriter. In that case the content type of the response has to be set to "multipart/byteranges" instead of to what it would have been if the full resource was written (e.g. "text/plain"). Each region is then written with the actual content-type in the boundary section.

ResourceRegionHttpMessageWriter extends EncoderHttpMessageWriter and has depended on the incorrect wrong behavior described under #19920. After the fix for #19920, each region is written with the content type of the response, i.e. "multipart/byteranges" instead of the actual content type, i.e. "text/plain".


Affects: 5.0 M5

Issue Links:

Referenced from: commits c735ffb

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions