Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Commit

Permalink
Serve files with serve module.
Browse files Browse the repository at this point in the history
Keep an in-memory cache of individual files as buffers.
  • Loading branch information
reid committed Oct 17, 2011
0 parents commit 075e629
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/mime.js
@@ -0,0 +1,16 @@
this.contentTypes = {
"css": "text/css",
"html": "text/html",
"ico": "image/x-icon",
"jpeg": "image/jpeg",
"jpg": "image/jpeg",
"js": "application/javascript",
"json": "application/json",
"less": "text/css",
"png": "image/png",
"svg": "image/svg+xml",
"swf": "application/x-shockwave-flash",
"tiff": "image/tiff",
"txt": "text/plain",
"xml": "text/xml"
};

0 comments on commit 075e629

Please sign in to comment.