Update DoH example from internet-draft to RFC 8484. (#58)

This commit is contained in:
Tom Pusateri
2020-04-17 15:21:31 +02:00
committed by Github
parent cbe05219b4
commit c11116822a
+3 -3
View File
@@ -26,12 +26,12 @@ const buf = dnsPacket.encode({
})
const options = {
hostname: 'dns.google.com',
hostname: 'dns.google',
port: 443,
path: '/experimental',
path: '/dns-query',
method: 'POST',
headers: {
'Content-Type': 'application/dns-udpwireformat',
'Content-Type': 'application/dns-message',
'Content-Length': Buffer.byteLength(buf)
}
}