Skip to content

Conversation

lsongdev
Copy link
Owner

@lsongdev lsongdev commented Aug 22, 2025

This PR makes the following changes:

  1. Remove pathname auto-completion logic
    • The existing check u.pathname == '' never works in Node.js, since URL.pathname is always at least /.
    • As a result, the auto-completion logic was effectively dead code and has been removed.
  2. Enforce RFC8484 §4.1 requirement for the dns query parameter
    • According to RFC8484 §4.1, a DoH GET request must include the DNS query in a single query parameter named dns, encoded with base64url.
    • Custom query parameter names and {query} substitution are therefore no longer supported.

#95

@lsongdev lsongdev merged commit 051fefd into master Aug 22, 2025
1 of 3 checks passed
@lsongdev lsongdev deleted the doh-query branch August 22, 2025 08:34
@SukkaW SukkaW mentioned this pull request Aug 22, 2025
4 tasks
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.

1 participant