// Update msg if it's been changed by any plugins
msg = plugin_event.command.toString();
- console.log("running " + msg);
+
if (msg.substring(0, 1) === '/') {
+ console.log("running " + msg);
parts = msg.split(' ');
switch (parts[0].toLowerCase()) {
case '/j':
response.statusCode = 304;
} else {
response.setHeader('Etag', kiwi.cache.html[hash].hash);
+ response.setHeader('Content-type', 'text/html');
response.write(kiwi.cache.html[hash].html);
}
response.end();
response.statusCode = 304;
} else {
response.setHeader('Etag', hash2);
+ response.setHeader('Content-type', 'text/html');
response.write(html);
}
} else {