mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-08-27 21:59:49 +00:00
Fix server Content-Type problem
This commit is contained in:
@@ -144,7 +144,7 @@ func (s *Server) handlerFunc(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
if responseType == "application/json" {
|
if responseType == "application/json" {
|
||||||
s.generateResponseGoogle(w, r, req)
|
s.generateResponseGoogle(w, r, req)
|
||||||
} else if contentType == "application/dns-udpwireformat" {
|
} else if responseType == "application/dns-udpwireformat" {
|
||||||
s.generateResponseIETF(w, r, req)
|
s.generateResponseIETF(w, r, req)
|
||||||
} else {
|
} else {
|
||||||
panic("Unknown response Content-Type")
|
panic("Unknown response Content-Type")
|
||||||
|
|||||||
Reference in New Issue
Block a user