Update User-Agent

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

No files matched your search

+2 -2
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