[Pkg-javascript-commits] [node-static] 43/151: fix file-serving bug

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Tue Jan 7 23:17:57 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 d8393366f85553fadad82a699f33650d726d4acf
Author: cloudhead <alexis at cloudhead.io>
Date:   Mon May 2 16:48:16 2011 -0400

    fix file-serving bug
---
 lib/node-static.js | 4 ++--
 package.json       | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/node-static.js b/lib/node-static.js
index 914141e..ef8ad5a 100644
--- a/lib/node-static.js
+++ b/lib/node-static.js
@@ -6,7 +6,7 @@ var fs = require('fs'),
     url = require('url'),
     path = require('path');
 
-this.version = [0, 5, 5];
+this.version = [0, 5, 6];
 
 var mime = require('./node-static/mime');
 var util = require('./node-static/util');
@@ -226,7 +226,7 @@ this.Server.prototype.respond = function (pathname, status, _headers, files, sta
 
 this.Server.prototype.stream = function (pathname, files, buffer, res, callback) {
     (function streamFile(files, offset) {
-        var file = files.shift(), path;
+        var file = files.shift();
 
         if (file) {
             file = file[0] === '/' ? file : path.join(pathname || '.', file);
diff --git a/package.json b/package.json
index 82d633c..f79326a 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,7 @@
   "dependencies"  : [],
   "lib"           : "lib",
   "main"          : "./lib/node-static",
-  "version"       : "0.5.5",
+  "version"       : "0.5.6",
   "directories"   : { "test": "./test" },
   "engines"       : { "node": ">= 0.4.1" }
 }

-- 
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