Skip to content

Commit a0bb4b3

Browse files
committed
Merge branch 'fix/defaultTimeout'
* fix/defaultTimeout: Set default timeout for teepee. Refs #121
2 parents a8c0473 + c4cee70 commit a0bb4b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ module.exports = function (options) {
2929
canonicalRoot: options.canonicalRoot
3030
});
3131

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

3437
if (Array.isArray(options.excludePatterns)) {

0 commit comments

Comments
 (0)