Update User-Agent

This commit is contained in:
Star Brilliant
2018-04-16 21:35:33 +08:00
parent 627e2d639d
commit ff0e9529cb
4 changed files with 5 additions and 5 deletions

View File

@@ -102,8 +102,8 @@ func (s *Server) Start() error {
}
func (s *Server) handlerFunc(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Server", "DNS-over-HTTPS/1.1 (+https://github.com/m13253/dns-over-https)")
w.Header().Set("X-Powered-By", "DNS-over-HTTPS/1.1 (+https://github.com/m13253/dns-over-https)")
w.Header().Set("Server", jsonDNS.USER_AGENT)
w.Header().Set("X-Powered-By", jsonDNS.USER_AGENT)
if r.Form == nil {
const maxMemory = 32 << 20 // 32 MB