mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +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.open("POST", "/api/msd/write", true);
|
||||
__upload_http.upload.timeout = 5000;
|
||||
__upload_http.upload.timeout = 15000;
|
||||
__upload_http.onreadystatechange = __uploadStateChange;
|
||||
__upload_http.upload.onprogress = __uploadProgress;
|
||||
__upload_http.send(form_data);
|
||||
|
||||
@ -36,7 +36,7 @@ var tools = new function() {
|
||||
http.setRequestHeader("Content-Type", content_type);
|
||||
}
|
||||
http.onreadystatechange = callback;
|
||||
http.timeout = 5000;
|
||||
http.timeout = 15000;
|
||||
http.send(body);
|
||||
return http;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user