Skip to content

Commit 5a1a08d

Browse files
author
Pablo Cantero
committed
Bumped version number to 6.0.8
1 parent 3a74c45 commit 5a1a08d

2 files changed

Lines changed: 33 additions & 33 deletions

File tree

lib/node-static.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var fs = require('fs')
88
, util = require('./node-static/util');
99

1010
// Current version
11-
var version = [0, 6, 7];
11+
var version = [0, 6, 8];
1212

1313
// In-memory file store
1414
var store = {};
@@ -23,7 +23,7 @@ Server = function (root, options) {
2323

2424
this.defaultHeaders = {};
2525
this.options.headers = this.options.headers || {};
26-
26+
2727
if ('cache' in this.options) {
2828
if (typeof(this.options.cache) === 'number') {
2929
this.cache = this.options.cache;
@@ -43,7 +43,7 @@ Server = function (root, options) {
4343
if (this.cache !== false) {
4444
this.defaultHeaders['cache-control'] = 'max-age=' + this.cache;
4545
}
46-
46+
4747
for (var k in this.defaultHeaders) {
4848
this.options.headers[k] = this.options.headers[k] ||
4949
this.defaultHeaders[k];
@@ -82,7 +82,7 @@ Server.prototype.serveDir = function (pathname, req, res, finish) {
8282
Server.prototype.serveFile = function (pathname, status, headers, req, res) {
8383
var that = this;
8484
var promise = new(events.EventEmitter);
85-
85+
8686
pathname = this.resolve(pathname);
8787

8888
fs.stat(pathname, function (e, stat) {
@@ -170,11 +170,11 @@ Server.prototype.serve = function (req, res, callback) {
170170
var that = this,
171171
promise = new(events.EventEmitter),
172172
pathname;
173-
173+
174174
var finish = function (status, headers) {
175175
that.finish(status, headers, req, res, promise, callback);
176176
};
177-
177+
178178
try {
179179
pathname = decodeURI(url.parse(req.url).pathname);
180180
}

package.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,33 @@
55
"keywords" : ["http", "static", "file", "server"],
66
"author" : "Alexis Sellier <self@cloudhead.net>",
77
"contributors" : [
8-
{
9-
"name": "Pablo Cantero",
10-
"email": "pablo@pablocantero.com"
11-
}
8+
{
9+
"name": "Pablo Cantero",
10+
"email": "pablo@pablocantero.com"
11+
}
1212
],
13-
"repository": {
14-
"type": "git",
15-
"url": "http://github.com/cloudhead/node-static"
16-
},
17-
"main" : "./lib/node-static",
18-
"scripts": {
19-
"test": "vows --spec --isolate"
20-
},
21-
"bin": {
22-
"static": "bin/cli.js"
23-
},
24-
"license" : "MIT",
25-
"dependencies" : {
26-
"optimist": ">=0.3.4",
27-
"colors": ">=0.6.0",
28-
"mime": ">=1.2.9"
29-
},
30-
"devDependencies" : {
31-
"request": "latest",
32-
"vows": "latest"
33-
},
34-
"version" : "0.6.7",
35-
"engines" : { "node": ">= 0.4.1" }
13+
"repository": {
14+
"type": "git",
15+
"url": "http://github.com/cloudhead/node-static"
16+
},
17+
"main" : "./lib/node-static",
18+
"scripts": {
19+
"test": "vows --spec --isolate"
20+
},
21+
"bin": {
22+
"static": "bin/cli.js"
23+
},
24+
"license" : "MIT",
25+
"dependencies" : {
26+
"optimist": ">=0.3.4",
27+
"colors": ">=0.6.0",
28+
"mime": ">=1.2.9"
29+
},
30+
"devDependencies" : {
31+
"request": "latest",
32+
"vows": "latest"
33+
},
34+
"version" : "0.6.8",
35+
"engines" : { "node": ">= 0.4.1" }
3636
}
3737

0 commit comments

Comments
 (0)