set DOH content-type

master
fangdingjun 6 years ago
parent 20c5e4794d
commit 0c196e8267

@ -60,6 +60,7 @@ func (srv *server) handleHTTP2Req(w http.ResponseWriter, r *http.Request) {
for _, a := range m.Answer { for _, a := range m.Answer {
log.Debugln("result", a.String()) log.Debugln("result", a.String())
} }
w.Header().Set("content-type", "application/dns-message")
d, _ := m.Pack() d, _ := m.Pack()
w.Write(d) w.Write(d)
} }

Loading…
Cancel
Save