[Announcement] Static File CSV Content-Type Changed to "text/csv" #17385
Labels
breaking-change
This issue / pr will introduce a breaking change, when resolved / merged.
Milestone
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 valuetext/csv
.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
The text was updated successfully, but these errors were encountered: