[Pkg-javascript-commits] [node-static] 134/151: Updated syntax for ext. library (mime)

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Tue Jan 7 23:18:03 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository node-static.

commit 36dc437c763ff99813c11cb0d950566ef32bc8fd
Author: thbaja <thbaja at gmail.com>
Date:   Wed Jun 19 15:43:28 2013 +0200

    Updated syntax for ext. library (mime)
---
 lib/node-static.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/node-static.js b/lib/node-static.js
index 9c77c31..04603be 100644
--- a/lib/node-static.js
+++ b/lib/node-static.js
@@ -280,7 +280,7 @@ Server.prototype.respondNoGzip = function (pathname, status, contentType, _heade
 
 Server.prototype.respond = function (pathname, status, _headers, files, stat, req, res, finish) {
     var contentType = _headers['Content-Type'] || 
-                      mime.contentTypes[path.extname(files[0]).slice(1)] ||
+                      mime.lookup[path.extname(files[0]).slice(1)] ||
                       'application/octet-stream';
     if(this.options.gzip) {
         this.respondGzip(pathname, status, contentType, _headers, files, stat, req, res, finish);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-static.git



More information about the Pkg-javascript-commits mailing list