Skip to content

Commit

Permalink
Update DoH example from internet-draft to RFC 8484. (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
pusateri authored Apr 17, 2020
1 parent cbe0521 commit c111168
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/doh.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit c111168

Please sign in to comment.