Skip to content

Transfer encoding "identity" is deprecated, causes 502 with reverse proxy #486

@skwee357

Description

@skwee357

Prerequisites

  • I have written a clear issue title
  • I have searched existing issues to avoid duplicates

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions