Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Mime Type for CSV files missing #2922

Open
5 of 8 tasks
billgeek opened this issue Aug 9, 2018 · 0 comments
Open
5 of 8 tasks

Mime Type for CSV files missing #2922

billgeek opened this issue Aug 9, 2018 · 0 comments

Comments

@billgeek
Copy link

billgeek commented Aug 9, 2018

Prerequisites

  • I have written a descriptive issue title
  • 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant