You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.
I have verified that I am running the latest version of Nancy
I have verified if the problem exist in both DEBUG and RELEASE mode
I have searched open and closed issues to ensure it has not already been reported
Description
MimeTypes.GetMimeType("filename.csv") returns application/octet-stream which is not correct according to the RFC 7111. It should be text/csv.
Steps to Reproduce
Create any project
Get the mime type for a CSV file
Observe issue
System Configuration
Any environment
Nancy version:
Nancy host
Nancy.Hosting.Aspnet
Nancy.Hosting.Self
Nancy.Owin
Other:
Other Nancy packages and versions:
Environment (Operating system, version and so on):
.NET Framework version:
Additional information:
the workaround at the moment is to register the correct mime type on application startup. (MimeTypes.AddType("csv", "text/csv");)
The source file (Nancy\src\Nancy\MimeTypes.cs) does not include an entry for CSV files.
The text was updated successfully, but these errors were encountered:
Prerequisites
DEBUG
andRELEASE
modeDescription
MimeTypes.GetMimeType("filename.csv")
returnsapplication/octet-stream
which is not correct according to the RFC 7111. It should betext/csv
.Steps to Reproduce
System Configuration
Any environment
the workaround at the moment is to register the correct mime type on application startup. (
MimeTypes.AddType("csv", "text/csv");
)The source file (
Nancy\src\Nancy\MimeTypes.cs
) does not include an entry for CSV files.The text was updated successfully, but these errors were encountered: