binary draft
This commit is contained in:
parent
7f9a1e2c7a
commit
973f97cc09
38 changed files with 906 additions and 312 deletions
|
@ -28,6 +28,14 @@ function accept(req, res) {
|
|||
}
|
||||
|
||||
}
|
||||
} else if (req.url == '/json') {
|
||||
res.writeHead(200, {
|
||||
// 'Content-Type': 'application/json;charset=utf-8',
|
||||
'Cache-Control': 'no-cache'
|
||||
});
|
||||
|
||||
res.write(JSON.stringify({message: "Hello, world!"}));
|
||||
res.end();
|
||||
} else {
|
||||
file.serve(req, res);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue