Skip to content

Commit

Permalink
Update Static to pass options (like "indexes") to File.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Robinson committed Mar 8, 2010
1 parent 99f0eda commit 2470bb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/jack/static.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
var File = require("./file").File,
file = require("file");
var File = require("./file").File;
var FILE = require("file");

var Static = exports.Static = function(app, options) {
var options = options || {},
urls = options["urls"] || ["/favicon.ico"],
root = options["root"] || file.cwd(),
fileServer = File(root);
root = options["root"] || FILE.cwd(),
fileServer = File(root, options);

return function(env) {
var path = env["PATH_INFO"];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
"jars": [
"jars/simple-4.1.10.jar"
],
"version": "0.2.2"
"version": "0.2.3"
}

0 comments on commit 2470bb7

Please sign in to comment.