Tweaked the permissions on the logs so we don't end up with a bunch of errors.

Oops, missed the generated router, well each instance generates it fresh anyway.
This commit is contained in:
Azareal 2018-08-22 22:37:58 +10:00
parent 80f103a3d3
commit 0ad12c3958
2 changed files with 3 additions and 1 deletions

View File

@ -95,6 +95,8 @@ chgrp -R www-data src
cd src
chmod 2775 logs
chmod 755 ./install-linux
./install-linux

View File

@ -890,7 +890,7 @@ func (router *GenRouter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
// Disable Gzip when SSL is disabled for security reasons?
if prefix != "/ws" && strings.Contains(req.Header.Get("Accept-Encoding"), "gzip") {
w.Header().Set("Content-Encoding", "gzip")
w.Header().Set("Content-Type", "text/html")
w.Header().Set("Content-Type", "text/html; charset=utf-8")
gz := gzip.NewWriter(w)
defer func() {
if w.Header().Get("Content-Encoding") == "gzip" {