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:
Manjunath Reddy 2020-11-19 14:47:55 +08:00 committed by GitHub
parent 99e59ba611
commit 565fef832c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}