From 0c196e8267f4aa677cb5199c60def2a164059f52 Mon Sep 17 00:00:00 2001 From: fangdingjun Date: Sun, 9 Sep 2018 10:54:24 +0800 Subject: [PATCH] set DOH content-type --- server_https.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server_https.go b/server_https.go index 3a23350..8f34d70 100644 --- a/server_https.go +++ b/server_https.go @@ -60,6 +60,7 @@ func (srv *server) handleHTTP2Req(w http.ResponseWriter, r *http.Request) { for _, a := range m.Answer { log.Debugln("result", a.String()) } + w.Header().Set("content-type", "application/dns-message") d, _ := m.Pack() w.Write(d) }