Browse files

fixed mimetype detection

  • Loading branch information...
1 parent 674e554 commit 29994a35bd36defdd83e386c7332fc88c2208384 @mikedeboer committed Feb 3, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/DAV/plugins/browser.js
View
4 lib/DAV/plugins/browser.js
@@ -495,10 +495,10 @@ var jsDAV_Browser_Plugin = module.exports = jsDAV_ServerPlugin.extend({
// Rudimentary mime type detection
var mime;
switch (Path.extname(assetPath).toLowerCase()) {
- case "ico" :
+ case ".ico" :
mime = "image/vnd.microsoft.icon";
break;
- case "png" :
+ case ".png" :
mime = "image/png";
break;
default:

0 comments on commit 29994a3

Please sign in to comment.