Overal improvement
This commit is contained in:
parent
f11aec082d
commit
7125e35103
15 changed files with 199 additions and 86 deletions
|
|
@ -17,7 +17,7 @@ const server = http.createServer((request, response) => {
|
|||
const mimeEncoding = {
|
||||
'.gz': 'gzip',
|
||||
};
|
||||
let pathname = '.' + url.parse(request.url).pathname;
|
||||
let pathname = 'public' + url.parse(request.url).pathname;
|
||||
fs.exists(pathname, function (exist) {
|
||||
if(!exist)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue