Fix server Content-Type problem

This commit is contained in:
Star Brilliant
2018-03-21 17:07:40 +08:00
parent 0e36d3b31b
commit 06b700cb7e

View File

@@ -144,7 +144,7 @@ func (s *Server) handlerFunc(w http.ResponseWriter, r *http.Request) {
if responseType == "application/json" {
s.generateResponseGoogle(w, r, req)
} else if contentType == "application/dns-udpwireformat" {
} else if responseType == "application/dns-udpwireformat" {
s.generateResponseIETF(w, r, req)
} else {
panic("Unknown response Content-Type")