Skip to content

Commit 93779f3

Browse files
behcet-lidougwilson
authored andcommitted
docs: fix mistake in code example
closes #20
1 parent 25a2340 commit 93779f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ var http = require('http')
111111
var serveStatic = require('serve-static')
112112

113113
// Serve up public/ftp folder
114-
app.use(serveStatic('public/ftp', {
114+
var serve = serveStatic('public/ftp', {
115115
'index': false,
116116
'setHeaders': setHeaders
117-
}))
117+
})
118118

119119
// Set header to force download
120120
function setHeaders(res, path) {

0 commit comments

Comments
 (0)