Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit a3cfc3b

Browse files
mike1polMikhail Poluboyarinov
authored and
Mikhail Poluboyarinov
committed
res.send before settings check, add *.iml to .gitignore
1 parent 36fee56 commit a3cfc3b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ npm-debug.log
2222

2323
*.sublime-project
2424
*.sublime-workspace
25+
*.iml
2526

26-
.idea/
27+
.idea/

app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ app.post('/:config', function(req, res) {
9898
var config = configs[config_name];
9999
var logger = new Logger(config_name);
100100

101+
res.send(".");
102+
101103
if (!config || req.body.zen) {
102104
logger.error('Invalid request for config: ' + config_name);
103105
// Log invalid request
@@ -146,8 +148,6 @@ app.post('/:config', function(req, res) {
146148
} else {
147149
return logger.info('No commands to execute.');
148150
}
149-
150-
res.send(".");
151151
});
152152

153153
app.all('*', function(req, res) {

0 commit comments

Comments
 (0)