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" {