Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

allow mimetype option #15

Merged
merged 1 commit into from

2 participants

@maxogden

so i can override the default mimetype if i so choose

@mikeal mikeal merged commit c248249 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 23, 2012
  1. @maxogden

    allow mimetype option

    maxogden authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  main.js
View
2  main.js
@@ -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
Something went wrong with that request. Please try again.