Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #608 from xPaw/patch-5
Browse files Browse the repository at this point in the history
Send useragent with link expander requests
  • Loading branch information
erming committed Jan 24, 2016
2 parents 474b9f6 + 12d798f commit 7b1b4dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/plugins/irc-events/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7b1b4dc

Please sign in to comment.