Change compression level
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
08514b50c6
commit
5e688e3870
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user