mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-11-15 02:28:17 +00:00
Fix Accept header detection
This commit is contained in:
1 parent
2176e14e65
commit
5723558934
1 file changed
+1
-1
@@ -142,7 +142,7 @@ func (s *Server) handlerFunc(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if contentType == "application/x-www-form-urlencoded" {
|
||||
if responseType == "application/json" {
|
||||
s.generateResponseGoogle(w, r, req)
|
||||
} else if contentType == "application/dns-udpwireformat" {
|
||||
s.generateResponseIETF(w, r, req)
|
||||
|
||||
Reference in new issue
Block a user