add gzip support

This commit is contained in:
6543 2022-08-28 21:30:10 +02:00
parent 16a8d5d575
commit fac052f052
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
3 changed files with 43 additions and 11 deletions

View file

@ -9,11 +9,6 @@ import (
"codeberg.org/codeberg/pages/server/utils"
)
func SetupServer(handler http.HandlerFunc) http.HandlerFunc {
// TODO: enagle gzip compression
return handler
}
func SetupHTTPACMEChallengeServer(challengeCache cache.SetGetKey) http.HandlerFunc {
challengePath := "/.well-known/acme-challenge/"