Embed servers, channels and users in index.html
This commit is contained in:
parent
04d61dd9a6
commit
22d8b8b363
7 changed files with 123 additions and 45 deletions
|
@ -141,10 +141,10 @@ func serveIndex(w http.ResponseWriter, r *http.Request) {
|
|||
w.Header().Set("Content-Encoding", "gzip")
|
||||
|
||||
gzw := gzip.NewWriter(w)
|
||||
renderIndex(gzw, session)
|
||||
renderIndex(gzw, getIndexData(r, session))
|
||||
gzw.Close()
|
||||
} else {
|
||||
renderIndex(w, session)
|
||||
renderIndex(w, getIndexData(r, session))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue