Browse Source

Revert "Fix serving videos for Mobile Safari / Safari through Cloudflare by disabling Gzip compression :/"

This reverts commit 35241bc284.
pull/459/head
James Mills 1 week ago
parent
commit
e7f4708017
Signed by: prologic GPG Key ID: AC4C014F1440EBD6
  1. 7
      internal/server.go

7
internal/server.go

@ -16,6 +16,7 @@ import (
"time"
"git.mills.io/prologic/observe"
"github.com/NYTimes/gziphandler"
"github.com/andyleap/microformats"
humanize "github.com/dustin/go-humanize"
"github.com/gabstv/merger"
@ -796,7 +797,11 @@ func NewServer(bind string, options ...Option) (*Server, error) {
Handler: logger.New(logger.Options{
Prefix: "twtxt",
RemoteAddressHeaders: []string{"X-Forwarded-For"},
}).Handler(sm.Handler(csrfHandler)),
}).Handler(
gziphandler.GzipHandler(
sm.Handler(csrfHandler),
),
),
},
// API

Loading…
Cancel
Save