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.
This commit is contained in:
Frank Denis 2019-06-13 09:24:56 +02:00 committed by Silver
parent 25a04e0c69
commit 9cd0b7048a
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ func (u *UpstreamHTTPS) exchangeWireformat(msg []byte) ([]byte, error) {
return nil, errors.Wrap(err, "failed to create an HTTPS request")
}
req.Header.Add("Content-Type", "application/dns-udpwireformat")
req.Header.Add("Content-Type", "application/dns-message")
req.Host = u.endpoint.Hostname()
resp, err := u.client.Do(req)