From b3fed9c1a710d5b1b9611828f4c33986c85dad04 Mon Sep 17 00:00:00 2001 From: "C. J. Tantay" Date: Mon, 28 Aug 2023 17:40:36 -0700 Subject: [PATCH] Update http-content-encoding.md Updated doc to reference unused httpContentEncoding import --- website/docs/middlewares/http-content-encoding.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/middlewares/http-content-encoding.md b/website/docs/middlewares/http-content-encoding.md index 11f42b4a1..483709057 100644 --- a/website/docs/middlewares/http-content-encoding.md +++ b/website/docs/middlewares/http-content-encoding.md @@ -33,7 +33,7 @@ import { constants } from 'node:zlib' export const handler = middy() .use(httpContentNegotiation()) - .use(httpCompressMiddleware({ + .use(httpContentEncoding({ br: { params: { [constants.BROTLI_PARAM_MODE]: constants.BROTLI_MODE_TEXT, // adjusted for UTF-8 text @@ -61,7 +61,7 @@ import { createReadableStream } from '@datastream/core' export const handler = middy({ streamifyResponse: true }) .use(httpContentNegotiation()) - .use(httpCompressMiddleware({ + .use(httpContentEncoding({ br: { params: { [constants.BROTLI_PARAM_MODE]: constants.BROTLI_MODE_TEXT, // adjusted for UTF-8 text