Skip to content

rpc: always set content-length on HTTP responses#35072

Merged
jrhea merged 1 commit into
ethereum:masterfrom
fjl:rpc-content-length
May 29, 2026
Merged

rpc: always set content-length on HTTP responses#35072
jrhea merged 1 commit into
ethereum:masterfrom
fjl:rpc-content-length

Conversation

@fjl

@fjl fjl commented May 29, 2026

Copy link
Copy Markdown
Contributor

We recently changed the JSON encoding logic to use an internal []byte buffer.
This means we can now always set Content-Length on the response.

@jrhea jrhea left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jrhea jrhea added this to the 1.17.4 milestone May 29, 2026
@jrhea
jrhea merged commit b908022 into ethereum:master May 29, 2026
8 of 9 checks passed
0xjvn pushed a commit to 0xjvn/go-ethereum that referenced this pull request Jun 5, 2026
We recently changed the JSON encoding logic to use an internal `[]byte`
buffer.
This means we can now always set `Content-Length` on the response.
gballet pushed a commit to gballet/go-ethereum that referenced this pull request Jun 12, 2026
We recently changed the JSON encoding logic to use an internal `[]byte`
buffer.
This means we can now always set `Content-Length` on the response.
AdityaSripal pushed a commit to AdityaSripal/go-ethereum that referenced this pull request Jun 21, 2026
We recently changed the JSON encoding logic to use an internal `[]byte`
buffer.
This means we can now always set `Content-Length` on the response.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants