Skip to content

Conversation

TheBlueMatt
Copy link
Member

DoH is supposed to require the base64url encoding of the DNS request, but our encoder was actually using classic base64. While this is incorrect, it appears many (most?) DoH resolvers will actually accept base64 just fine.

Still, best to swap for the correct alphabet, which we do here.

Fixes #12

DoH is supposed to require the base64url encoding of the DNS
request, but our encoder was actually using classic base64. While
this is incorrect, it appears many (most?) DoH resolvers will
actually accept base64 just fine.

Still, best to swap for the correct alphabet, which we do here.

Fixes rust-bitcoin#12
@TheBlueMatt
Copy link
Member Author

Also pushed a doc fix for #11.

@TheBlueMatt
Copy link
Member Author

Also (hopefully) marginally improved test robustness.

@TheBlueMatt TheBlueMatt merged commit 74003b4 into rust-bitcoin:main Sep 19, 2025
11 checks passed
Copy link

@tnull tnull left a comment

Choose a reason for hiding this comment

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

Post-merge ACK

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.

write_base64 is not URL-safe
3 participants