Prerequisites
Versions
@kitajs/fastify-html-plugin@next
A minimal reproducible example
Bug Description
According to RFC 7230, "identity" in "transfer-encoding" header value has been remove/deprecated. When using the next version of kitajs/fastify-html-plugin it causes caddy (didn't test other reverse proxies) to return 502 Bad Gateway when hitting a nodejs endpoint. The identity value was not sent in the master version.
next version:
|
.header('transfer-encoding', 'identity') |
master version: https://github.com/kitajs/html/blob/master/packages/fastify-html-plugin/index.js#L70
RFC: https://www.rfc-editor.org/rfc/rfc7230.html
The "identity" transfer coding token has been removed. (Sections 3.3
and 4)
Steps to Reproduce
Install the next version of the fastify plugin, setup caddy as reverse proxy, check with curl/wget that "identity" is returned as header value, and browser will return 502
Expected Behavior
No response
Prerequisites
Versions
@kitajs/fastify-html-plugin@next
A minimal reproducible example
Bug Description
According to RFC 7230, "identity" in "transfer-encoding" header value has been remove/deprecated. When using the next version of kitajs/fastify-html-plugin it causes caddy (didn't test other reverse proxies) to return 502 Bad Gateway when hitting a nodejs endpoint. The identity value was not sent in the master version.
next version:
html/packages/fastify-html-plugin/src/html.ts
Line 42 in 913db5b
master version: https://github.com/kitajs/html/blob/master/packages/fastify-html-plugin/index.js#L70
RFC: https://www.rfc-editor.org/rfc/rfc7230.html
Steps to Reproduce
Install the next version of the fastify plugin, setup caddy as reverse proxy, check with curl/wget that "identity" is returned as header value, and browser will return 502
Expected Behavior
No response