Skip to content

Use a fixed size for DoH request body - #9687

Merged
yschimke merged 2 commits into
lysine-dev:mainfrom
yschimke:doh
Aug 16, 2026
Merged

yschimke merged 2 commits into
lysine-dev:mainfrom
yschimke:doh

Conversation

@yschimke

Copy link
Copy Markdown
Collaborator

closes #9686

Cloudflare seems unique in rejecting chunked request bodies

@yschimke
yschimke requested a review from swankjesse August 15, 2026 18:40
private val query: DnsMessage,
query: DnsMessage,
) : RequestBody() {
private val content = Buffer().also { DnsMessageWriter(it).write(query) }.readByteString()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If we're doing this anyway, there's an API that turns a ByteString into a RequestBodg that we could use.

@yschimke
yschimke merged commit ecc3b05 into lysine-dev:main Aug 16, 2026
18 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants