We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ef9ec8 commit 5d6f935Copy full SHA for 5d6f935
1 file changed
dnscrypt-proxy/local-doh.go
@@ -18,8 +18,9 @@ func (handler localDoHHandler) ServeHTTP(writer http.ResponseWriter, request *ht
18
dataType := "application/dns-message"
19
writer.Header().Set("Server", "dnscrypt-proxy")
20
if request.Header.Get("Content-Type") != dataType {
21
+ writer.Header().Set("Content-Type", "text/plain")
22
writer.WriteHeader(400)
- writer.Write([]byte("Unexpected Content-Type\n"))
23
+ writer.Write([]byte("dnscrypt-proxy local DoH server\n"))
24
return
25
}
26
proxy := handler.proxy
0 commit comments