From 9cd0b7048a287c79e468d116113cc4271d839ec4 Mon Sep 17 00:00:00 2001 From: Frank Denis <124872+jedisct1@users.noreply.github.com> Date: Thu, 13 Jun 2019 09:24:56 +0200 Subject: [PATCH] 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. --- tunneldns/https_upstream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tunneldns/https_upstream.go b/tunneldns/https_upstream.go index 0544112a..ac9b60ec 100644 --- a/tunneldns/https_upstream.go +++ b/tunneldns/https_upstream.go @@ -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)