Send useragent with link expander requests

This commit is contained in:
Pavel Djundik 2016-01-24 12:43:00 +02:00 committed by Pavel Djundik
parent 97bb284078
commit 12d798f0e2

View File

@ -101,7 +101,12 @@ function parse(msg, url, res, client) {
function fetch(url, cb) { function fetch(url, cb) {
try { try {
var req = request.get(url); var req = request.get({
url: url,
headers: {
"User-Agent": "Mozilla/5.0 (compatible; Shout IRC Client; +https://github.com/erming/shout)"
}
});
} catch (e) { } catch (e) {
return; return;
} }