mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-08-28 04:24:04 +00:00
Turn requests lower case (to get rid of knot-resolver's mixed case)
This commit is contained in:
@@ -87,6 +87,7 @@ func (s *Server) handlerFunc(w http.ResponseWriter, r *http.Request) {
|
||||
jsonDNS.FormatError(w, "Invalid argument value: \"name\"", 400)
|
||||
return
|
||||
}
|
||||
name = strings.ToLower(name)
|
||||
if punycode, err := idna.ToASCII(name); err == nil {
|
||||
name = punycode
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user