@adonisjs/http-server 7.4.0 → 7.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2344,7 +2344,7 @@ var Response = class extends Macroable6 {
2344
2344
  * - Buffer
2345
2345
  */
2346
2346
  #getDataType(content) {
2347
- if (Buffer2.isBuffer(content)) {
2347
+ if (content instanceof Uint8Array) {
2348
2348
  return "buffer";
2349
2349
  }
2350
2350
  if (content instanceof Date) {
@@ -4426,6 +4426,10 @@ var Server = class {
4426
4426
  * Set the HTTP server instance used to listen for requests.
4427
4427
  */
4428
4428
  setNodeServer(server) {
4429
+ server.timeout = this.#config.timeout ?? server.timeout;
4430
+ server.keepAliveTimeout = this.#config.keepAliveTimeout ?? server.keepAliveTimeout;
4431
+ server.headersTimeout = this.#config.headersTimeout ?? server.headersTimeout;
4432
+ server.requestTimeout = this.#config.requestTimeout ?? server.requestTimeout;
4429
4433
  this.#nodeHttpServer = server;
4430
4434
  }
4431
4435
  /**
@@ -4566,4 +4570,4 @@ export {
4566
4570
  Server,
4567
4571
  defineConfig
4568
4572
  };
4569
- //# sourceMappingURL=chunk-FABGS5HW.js.map
4573
+ //# sourceMappingURL=chunk-PCV5MT2U.js.map