feat: añadir soporte para compresión Brotli en el servidor

This commit is contained in:
2025-10-08 12:19:09 -05:00
parent 56eb8462cd
commit 2f0f539185
2 changed files with 5 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ import { createServer, IncomingMessage, ServerResponse } from "node:http";
import { promises as fs } from "node:fs";
import { readFileSync } from "node:fs";
import { createHash } from "node:crypto";
import { gzipSync } from "node:zlib";
import { gzipSync, brotliCompressSync } from "node:zlib";
import path from "node:path";
import ejs from "ejs";