Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static File CSV Content-Type Changed to "text/csv" #395

Open
Tratcher opened this issue Nov 25, 2019 · 0 comments

Comments

@Tratcher
Copy link
Member

@Tratcher Tratcher commented Nov 25, 2019

Static File CSV Content-Type Changed to "text/csv"

The default Content-Type that StaticFiles uses for .csv files is being changed to be the standards compliant value text/csv.

See aspnet/AspNetCore#17385 for questions and discussion.

Version introduced

5.0

Old behavior

The Content-Type application/octet-stream was used.

New behavior

The Content-Type text/csv is used.

Reason for change

This complies with RFC 7111.

Recommended action

If this change impacts your application then the Content-Type mapping can be customized as documented here.

Category

ASP.NET

Affected APIs

FileExtensionContentTypeProvider


Issue metadata

  • Issue type: breaking-change
@Tratcher Tratcher added this to the 5.0 milestone Nov 25, 2019
@aspnet aspnet locked as resolved and limited conversation to collaborators Nov 25, 2019
@rynowak rynowak added the 5.0.0 label Nov 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants
You can’t perform that action at this time.