Change compression level
continuous-integration/drone/push Build is passing Details

This commit is contained in:
DutchEllie 2022-03-24 15:55:18 +01:00
parent 08514b50c6
commit 5e688e3870
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:dKq6ZSgN5E3Viqrw/+xAdf2VdR6hdRGNyrYqXXwfjTY
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package main
import (
"compress/gzip"
"log"
"net/http"
@ -79,7 +80,7 @@ func main() {
}
app.GenerateStaticWebsite("./staticsite", handler)
compressed := handlers.CompressHandler(handler)
compressed := handlers.CompressHandlerLevel(handler, gzip.BestSpeed)
http.Handle("/", compressed)
if err := http.ListenAndServe(":8000", nil); err != nil {