Skip to content

better mime type support #7

Description

I've added the following in my code to pull in (more) mime types from the node-mime module (https://github.com/bentomas/node-mime):

var mime = require("mime");
var lightnode = require('lightnode');

var server = new lightnode.FileServer(__dirname + '/static');

server.mimeTypes = mime.types;

Seems undocumented, maybe utilizing node-mime in the core lightnode code would be a good idea...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions