Skip to content

buffer: Synthesize content-length header in case of request buffering #7844

@euroelessar

Description

@euroelessar

Description:
When envoy processes request with enabled buffering it reads the whole request into memory before sending headers to an upstream.
Is is possible to make Envoy populate content-length header in this case? It would help with some http/1.0 backends (which unfortunately still exist in the wild).

Another option would be to add http/1.0-compliant behavior as cluster option (based on the precedent of existing accept_http10 option).

Without either of this options Envoy tries to send chunked-encoded data, which is observed as empty body by http/1.0 server.

Relevant Links:

Metadata

Metadata

Assignees

Labels

enhancementFeature requests. Not bugs or questions.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions