This commit is contained in:
lyswhut 2023-11-30 19:21:24 +08:00
parent b8a7a4d422
commit 7358c813e4

View File

@ -426,7 +426,7 @@ globalThis.lx_setup = (key, id, name, description, version, author, homepage, ra
// // data.content_type = 'multipart/form-data'
// options.json = false
// }
if (timeout && typeof timeout == 'number') options.timeout = Math.min(timeout, 60_000)
if (timeout && typeof timeout == 'number' && timeout > 0) options.timeout = Math.min(timeout, 60_000)
let request = sendNativeRequest(url, { method, body, form, formData, ...options }, (err, resp) => {
if (err) {