Fix Accept header detection

This commit is contained in:
Star Brilliant
2018-03-21 15:28:47 +08:00
parent 2176e14e65
commit 5723558934

View File

@@ -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)