Skip to content

Commit

Permalink
Merge branch 'fix/defaultTimeout'
Browse files Browse the repository at this point in the history
* fix/defaultTimeout:
  Set default timeout for teepee. Refs #121
  • Loading branch information
Munter committed Dec 17, 2017
2 parents a8c0473 + c4cee70 commit a0bb4b3
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 @@ -29,6 +29,9 @@ module.exports = function (options) {
canonicalRoot: options.canonicalRoot
});

ag.teepee.headers['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 a0bb4b3

Please sign in to comment.