Commits

Magnus Hoff  committed 1a12d3a

Actually serve the decided content-type

  • Participants
  • Parent commits 023741a

Comments (0)

Files changed (1)

File fileresource.js

     }
 
     var ext = path.extname(this.fullpath);
-    var contentType = this.headers['content-type'] || contentTypes[ext] || 'text/plain';
+    this.headers['content-type'] = this.headers['content-type'] || contentTypes[ext] || 'text/plain';
 }
 FileResource.prototype = new Resource();
 FileResource.constructor = FileResource;