Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept a wider range of content types for DoH API calls. #3046

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sgarciac
Copy link

@sgarciac sgarciac commented Nov 19, 2024

Currently, the DoH calls fail when using google's DoH API, since it returns "application/json; charset=UTF-8" as its response's content-type and the code expects "application/dns-json" (which seems to be particular to Cloudflare).

Notice that Alibaba Cloud's DoH returns "application/json", for example.

While there is no agreed upon MIME type for DoH's JSON Schema, it seems judicious to have the doh handle resolver to accept at least the major existing APIs out of the box.

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