mirror of
https://github.com/remy/inliner.git
synced 2024-09-11 17:25:30 +03:00
Fixes issue fetching urls without a user-agent
This commit is contained in:
parent
df3619f89b
commit
1316aacc48
@ -65,7 +65,9 @@ module.exports = function get(url, options) {
|
||||
var settings = assign({}, options, {
|
||||
encoding: null,
|
||||
followRedirect: true,
|
||||
headers: inliner.headers,
|
||||
headers: assign({}, inliner.headers, {
|
||||
'user-agent': 'facebookexternalhit'
|
||||
})
|
||||
});
|
||||
|
||||
debug('request %s', url, settings);
|
||||
|
Loading…
Reference in New Issue
Block a user