Permalink
Browse files

allow mimetype option

  • Loading branch information...
1 parent 9fbe9f4 commit 3fc2e36da61aa7e5158f9a8183734085695f0757 @maxogden maxogden committed Jan 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 main.js
View
@@ -30,7 +30,7 @@ function File (options) {
this.buffering = true
- this.mimetype = mimetypes.lookup(this.path.slice(this.path.lastIndexOf('.')+1))
+ this.mimetype = options.mimetype || mimetypes.lookup(this.path.slice(this.path.lastIndexOf('.')+1))
var stopBuffering = function () {
self.buffering = false

0 comments on commit 3fc2e36

Please sign in to comment.