Merge pull request #41 from mccartney/master

Fixes #13 (in upstream)
This commit is contained in:
Remy Sharp 2014-07-22 17:01:41 +01:00
commit 60d7cd7de6

View File

@ -427,6 +427,7 @@ Inliner.prototype.get = function (url, options, callback) {
if (res.statusCode !== 200) {
inliner.emit('progress', 'get ' + res.statusCode + ' on ' + url);
body = ''; // ?
callback && callback(body);
} else if (res.headers['location']) {
return inliner.get(res.headers['location'], options, callback);
} else {