Skip to content

Commit

Permalink
Set default timeout for teepee. Refs #121
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Oct 7, 2017
1 parent 8ca06cd commit 401d7d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ module.exports = function (options) {
canonicalRoot: options.canonicalRoot
});

ag.teepee.headers['User-Agent'] = 'User-Agent': 'Hyperlink v' + version + ' (https://www.npmjs.com/package/hyperlink)';
ag.teepee.timeout = 30000;

var excludePattern;

if (Array.isArray(options.excludePatterns)) {
Expand Down

0 comments on commit 401d7d8

Please sign in to comment.