mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-04 19:56:37 +02:00
fix crash if getFileCompressed fails (i.e. if /static/js is called)
This commit is contained in:
parent
8be52df515
commit
7fbcffb30b
@ -131,7 +131,10 @@ exports.minify = function(req, res, next)
|
||||
res.end();
|
||||
} else if (req.method == 'GET') {
|
||||
getFileCompressed(filename, contentType, function (error, content) {
|
||||
if(ERR(error)) return;
|
||||
if(ERR(error, function(){
|
||||
res.writeHead(500, {});
|
||||
res.end();
|
||||
})) return;
|
||||
res.header("Content-Type", contentType);
|
||||
res.writeHead(200, {});
|
||||
res.write(content);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user