mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
app type transition (#7167)
This commit is contained in:
10
app/app.go
10
app/app.go
@@ -8,6 +8,16 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
Srv *Server
|
||||
}
|
||||
|
||||
var globalApp App
|
||||
|
||||
func Global() *App {
|
||||
return &globalApp
|
||||
}
|
||||
|
||||
func CloseBody(r *http.Response) {
|
||||
if r.Body != nil {
|
||||
ioutil.ReadAll(r.Body)
|
||||
|
||||
Reference in New Issue
Block a user