Skip to content

Commit f736f3b

Browse files
Constantin Krügeruniqueck
authored andcommitted
Fix: Pass httpConnectionTimeout option to XmlHttpRequest
1 parent ce9ade8 commit f736f3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/checker/BrokenHttpLinksChecker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class Logic extends IBrokenHttpLinksChecker.DecisionTableLogic {
110110
global.XMLHttpRequest = require('unxhr').XMLHttpRequest
111111
}
112112
const xhr = new global.XMLHttpRequest()
113+
xhr.timeout = this.config.httpConnectionTimeout
113114
xhr.open(arg.getSymbol(), model.href, false)
114115
xhr.followRedirects = false
115116
xhr.addEventListener('load', function () {

0 commit comments

Comments
 (0)