Take User-Agent out of common library, that would be better for packaging

This commit is contained in:
Star Brilliant
2018-04-24 14:25:33 +08:00
parent 12df47f45f
commit f4516429ee
6 changed files with 37 additions and 6 deletions
+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", jsonDNS.USER_AGENT)
w.Header().Set("X-Powered-By", jsonDNS.USER_AGENT)
w.Header().Set("Server", USER_AGENT)
w.Header().Set("X-Powered-By", USER_AGENT)
if r.Form == nil {
const maxMemory = 32 << 20 // 32 MB