fix typo
This commit is contained in:
parent
2249d06337
commit
3f31ca57ed
2 changed files with 4 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ http.createServer(function(req, res) {
|
|||
if (req.method == "PUT") {
|
||||
if (!allowSave)
|
||||
return error(res, 404, "Saving not allowed pass --allow-save to enable");
|
||||
save(req, res, filename);
|
||||
return save(req, res, filename);
|
||||
}
|
||||
|
||||
fs.exists(filename, function(exists) {
|
||||
|
|
@ -86,6 +86,7 @@ function save(req, res, filePath) {
|
|||
}
|
||||
res.statusCode = 200;
|
||||
res.end("OK");
|
||||
console.log("saved ", filePath);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue