You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTTP/2 [RFC7540] is the minimum RECOMMENDED version of HTTP for use
with DoH.
So while an HTTP/1.1 DoH server is allowed, it would be good to support HTTP/2.
$ q A placeviolette.net @https://localhost:8443 --trace
DEBU[0000] Server(s): [https://localhost:8443]
DEBU[0000] Using server https://localhost:8443/dns-query with transport http
DEBU[0000] Using HTTP(s) transport: https://localhost:8443/dns-query
DEBU[0000] [http] sending GET request to https://localhost:8443/dns-query?dns=acABAAABAAAAAAAADXBsYWNldmlvbGV0dGUDbmV0AAABAAE
FATA[0000] requesting https://localhost:8443/dns-query?dns=acABAAABAAAAAAAADXBsYWNldmlvbGV0dGUDbmV0AAABAAE: Get "https://localhost:8443/dns-query?dns=acABAAABAAAAAAAADXBsYWNldmlvbGV0dGUDbmV0AAABAAE": net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x00\x00*\x04\x00\x00\x00\x00\x00\x00\x01\x00\x00\x10\x00\x00\x02\x00\x00\x00\x00\x00\x04\x00\x00\xff\xff\x00\x05\x00\x00@\x00\x00\b\x00\x00\x00\x00\x00\x03\x00\x00\x00d\x00\x06\x00\x01\x00\x00"
The text was updated successfully, but these errors were encountered:
I'm writing a toy resolver that only does DoH over HTTP/2, with the supported protocols advertised over ALPN (i.e., just
h2
).It would appear that
q
(as of v0.19.1) does not support this, and does not send theUpgrade: h2c
header either.Per RFC8484 § 5.2:
So while an HTTP/1.1 DoH server is allowed, it would be good to support HTTP/2.
The text was updated successfully, but these errors were encountered: