Skip to content

Commit 6753fd5

Browse files
authored
fix: remove deprecated "identity" for "transfer-encoding" header (#487)
1 parent 913db5b commit 6753fd5

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@kitajs/fastify-html-plugin": minor
3+
---
4+
5+
Remove the value `identity` from `transfer-encoding` header, as `identity` is deprecated per [RFC 7230](https://www.rfc-editor.org/rfc/rfc7230.html).

packages/fastify-html-plugin/src/html.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ function handleSyncHtml(htmlStr: string, reply: FastifyReply) {
3939

4040
if (requestData === undefined) {
4141
return reply
42-
.header('transfer-encoding', 'identity')
4342
.header('content-length', Buffer.byteLength(htmlStr, 'utf-8'))
4443
.send(htmlStr)
4544
}

0 commit comments

Comments
 (0)