Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Port part of fix to 2.0.x for: Returning a file, accept-ranges headers, and browser behaviors #6780 #6792

@Eilon

Description

@Eilon

See #6780

In the patch we can't add new APIs, so we should change the default behavior to be the 1.x behavior (i.e. no new headers by default). But, we should add a quirks mode switch to use the 2.0.0 behavior in case someone really wants it.

TODO: Need to figure out exactly which result types to patch. Definitely want to fix FileContentResult. Definitely don't want to fix Physical/VirtualFileResult. But not sure whether we want to change FileStreamResult (@Eilon thinks we should fix this).

See https://github.com/Eilon/QuirksModeSwitchSample for how to do quirks in general. And here's a specific example: eec16ff

cc @Tratcher

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions