Fix crash on broken links

This commit is contained in:
Mattias Erming 2015-01-03 18:58:12 -08:00
parent 318dcea39b
commit e54feda878

View file

@ -89,7 +89,11 @@ function parse(msg, url, res, client) {
}
function fetch(url, cb) {
try {
var req = request.get(url);
} catch(e) {
return;
}
var length = 0;
var limit = 1024 * 10;
req