Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Adding less extension to MimeTypes.cs #878

Merged
merged 2 commits into from

2 participants

@adamclerk

I want to use less.js in development of a new site and currently *.less
files are being returned as 'application/octet-stream' they should be
reutrned as 'text/css'.

@adamclerk adamclerk Adding less extension to MimeTypes.cs
I want to use less.js in development of a new site and currently *.less
files are being returned as 'application/octet-stream' they should be
reutrned as 'text/css'.
774e3b4
@adamclerk

@grumpydev

Here is the pull request you asked for. I tried to follow the conventions...but please be gentle...it's my first PR for Nancy.

src/Nancy/MimeTypes.cs
@@ -220,6 +220,7 @@ static MimeTypes ()
mimeTypes.Add ("la", "audio/nspaudio");
mimeTypes.Add ("lam", "audio/x-liveaudio");
mimeTypes.Add ("latex", "application/x-latex");
+ mimeTypes.Add ("less", "text/css");
@thecodejunkie Owner

the indenting is off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@thecodejunkie thecodejunkie merged commit e3e7e7d into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 21, 2012
  1. @adamclerk

    Adding less extension to MimeTypes.cs

    adamclerk authored
    I want to use less.js in development of a new site and currently *.less
    files are being returned as 'application/octet-stream' they should be
    reutrned as 'text/css'.
  2. @adamclerk

    fixing spaces for tabs

    adamclerk authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/Nancy/MimeTypes.cs
View
1  src/Nancy/MimeTypes.cs
@@ -220,6 +220,7 @@ static MimeTypes ()
mimeTypes.Add ("la", "audio/nspaudio");
mimeTypes.Add ("lam", "audio/x-liveaudio");
mimeTypes.Add ("latex", "application/x-latex");
+ mimeTypes.Add ("less", "text/css");
mimeTypes.Add ("list", "text/plain");
mimeTypes.Add ("lma", "audio/nspaudio");
mimeTypes.Add ("log", "text/plain");
Something went wrong with that request. Please try again.