From 0ad12c3958b928743087bc89fd7864d1c9c1fe5c Mon Sep 17 00:00:00 2001 From: Azareal Date: Wed, 22 Aug 2018 22:37:58 +1000 Subject: [PATCH] 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. --- README.md | 2 ++ gen_router.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ba0dbfa..f0e2e77d 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,8 @@ chgrp -R www-data src cd src +chmod 2775 logs + chmod 755 ./install-linux ./install-linux diff --git a/gen_router.go b/gen_router.go index 8ad99391..0f66dde3 100644 --- a/gen_router.go +++ b/gen_router.go @@ -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" {