Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Return the function, don't just create it.

  • Loading branch information...
commit 641bd6cd688d59f5c3bf106de37ef20857397dce 1 parent 008174f
isaacs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/auto-index.js
View
2  lib/auto-index.js
@@ -5,7 +5,7 @@ exports.autoIndex = function autoIndexFactory (docroot, indexIgnore) {
indexIgnore = indexIgnore || [];
if (!docroot) throw new Error("Need docroot config for autoIndex.");
- function autoIndex () {
+ return function autoIndex () {
var conf = this.server.conf,
dir = path.join(docroot, this.req.uri.path),
self = this,
Please sign in to comment.
Something went wrong with that request. Please try again.