Merge pull request #608 from xPaw/patch-5

Send useragent with link expander requests
This commit is contained in:
Mattias Erming 2016-01-24 16:01:59 +01:00
commit 7b1b4dc044

View File

@ -101,7 +101,12 @@ function parse(msg, url, res, client) {
function fetch(url, cb) {
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) {
return;
}