mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
increased web timeout
This commit is contained in:
parent
288fb05ea5
commit
0f4b990eae
@ -58,7 +58,7 @@ function Msd() {
|
|||||||
|
|
||||||
__upload_http = new XMLHttpRequest();
|
__upload_http = new XMLHttpRequest();
|
||||||
__upload_http.open("POST", "/api/msd/write", true);
|
__upload_http.open("POST", "/api/msd/write", true);
|
||||||
__upload_http.upload.timeout = 5000;
|
__upload_http.upload.timeout = 15000;
|
||||||
__upload_http.onreadystatechange = __uploadStateChange;
|
__upload_http.onreadystatechange = __uploadStateChange;
|
||||||
__upload_http.upload.onprogress = __uploadProgress;
|
__upload_http.upload.onprogress = __uploadProgress;
|
||||||
__upload_http.send(form_data);
|
__upload_http.send(form_data);
|
||||||
|
|||||||
@ -36,7 +36,7 @@ var tools = new function() {
|
|||||||
http.setRequestHeader("Content-Type", content_type);
|
http.setRequestHeader("Content-Type", content_type);
|
||||||
}
|
}
|
||||||
http.onreadystatechange = callback;
|
http.onreadystatechange = callback;
|
||||||
http.timeout = 5000;
|
http.timeout = 15000;
|
||||||
http.send(body);
|
http.send(body);
|
||||||
return http;
|
return http;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user