- sistemato timeout corto
- corretto errori sulla generazione del PDF - corretto alcune directory - corretto fs.promise - corretto CORS !
This commit is contained in:
@@ -131,6 +131,11 @@ async function Request(type, path, payload, responsedata = {}, options = {}) {
|
||||
...responsedata,
|
||||
};
|
||||
|
||||
// ✅ AGGIUNGI IL TIMEOUT DALLE OPTIONS
|
||||
if (options?.timeout) {
|
||||
config.timeout = options.timeout; // in millisecondi (es. 300000 = 5 minuti)
|
||||
}
|
||||
|
||||
if (options?.stream) config.responseType = 'stream';
|
||||
|
||||
let response;
|
||||
|
||||
Reference in New Issue
Block a user