mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-05-25 16:24:11 +00:00
Take User-Agent out of common library, that would be better for packaging
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user