Skip to content

Commit 9cd0b70

Browse files
jedisct1sssilver
authored andcommitted
DoH: change the media type to application/dns-message
The media type for DoH was changed from `application/dns-udpwireformat` to `application/dns-message` in May 2018. Ref: RFC8484 section 6.
1 parent 25a04e0 commit 9cd0b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tunneldns/https_upstream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (u *UpstreamHTTPS) exchangeWireformat(msg []byte) ([]byte, error) {
8282
return nil, errors.Wrap(err, "failed to create an HTTPS request")
8383
}
8484

85-
req.Header.Add("Content-Type", "application/dns-udpwireformat")
85+
req.Header.Add("Content-Type", "application/dns-message")
8686
req.Host = u.endpoint.Hostname()
8787

8888
resp, err := u.client.Do(req)

0 commit comments

Comments
 (0)