1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 13:00:54 +00:00

add Server info

This commit is contained in:
astaxie 2013-06-20 15:49:43 +08:00
parent 0abe3e2157
commit 3475685233

View File

@ -298,8 +298,10 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
}
}
}()
w := &responseWriter{writer: rw}
w.Header().Set("Server", "beegoServer")
var runrouter *controllerInfo
var findrouter bool