@samitouri / QOSami-HFS / commits / 4e743c2d

allow selection of a larger list when zipping

Massimo Melina committed Nov 20, 2025 at 23:08 UTC 4e743c2da8e1028799971e91d4773ac13b88b86f
1 file changed +4 -1
src/listen.ts
+4 -1
@@ -41,7 +41,10 @@ export function getHttpsWorkingPort() {
41 return httpsSrv?.listening && (httpsSrv.address() as any)?.port
42 }
43
44 -const commonServerOptions: http.ServerOptions = { requestTimeout: 0 }
44 +const commonServerOptions: http.ServerOptions = {
45 + requestTimeout: 0, // disable timeout on long uploads
46 + maxHeaderSize: 32768, // allow a larger header for a larger list in ?get=zip
47 +}
48 // these are properties that can be assigned to the server object
49 const commonServerAssign = { headersTimeout: 30_000, timeout: MINUTE } // 'headersTimeout' is not recognized by type lib, and 'timeout' is not effective when passed in parameters
50