mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 12:33:07 +00:00
Send useragent with link expander requests
This commit is contained in:
parent
97bb284078
commit
12d798f0e2
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue