find-rss
Advanced tools
Comparing version 1.6.3 to 1.6.4
@@ -177,3 +177,3 @@ (function() { | ||
return req = request.get(req, function(err, res, body) { | ||
var charset; | ||
var charset, error; | ||
if (err) { | ||
@@ -187,3 +187,8 @@ return callback(err, null); | ||
if (charset !== ('utf-8' || 'UTF-8')) { | ||
body = iconv.decode(body, charset); | ||
try { | ||
body = iconv.decode(body, charset); | ||
} catch (_error) { | ||
error = _error; | ||
return callback(error, null); | ||
} | ||
} | ||
@@ -190,0 +195,0 @@ return callback(null, body); |
{ | ||
"name": "find-rss", | ||
"description": "Find RSS/ATOM feed by HTML/URL", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"author": "nikezono", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
272
28364
9