Set default HTTP.request() timeout to 30 seconds
This commit is contained in:
parent
7aa68a0f75
commit
50b65b3010
1 changed files with 1 additions and 3 deletions
|
@ -384,9 +384,7 @@ Zotero.HTTP = new function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set timeout
|
// Set timeout
|
||||||
if (options.timeout) {
|
xmlhttp.timeout = options.timeout || 30000;
|
||||||
xmlhttp.timeout = options.timeout;
|
|
||||||
}
|
|
||||||
|
|
||||||
xmlhttp.ontimeout = function() {
|
xmlhttp.ontimeout = function() {
|
||||||
deferred.reject(new Zotero.HTTP.TimeoutException(options.timeout));
|
deferred.reject(new Zotero.HTTP.TimeoutException(options.timeout));
|
||||||
|
|
Loading…
Add table
Reference in a new issue