Include missing fileServer
In the `accept` method, `fileServer.serve(req, res)` was called however, noticed that it has not been initialized hence the change
This commit is contained in:
parent
99e59ba611
commit
565fef832c
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
let http = require('http');
|
||||
let url = require('url');
|
||||
let querystring = require('querystring');
|
||||
let static = require('node-static');
|
||||
let fileServer = new static.Server('.');
|
||||
|
||||
function onDigits(req, res) {
|
||||
res.writeHead(200, {
|
||||
|
@ -36,7 +38,6 @@ function accept(req, res) {
|
|||
}
|
||||
|
||||
fileServer.serve(req, res);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue