Browse Source

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

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

7
internal/server.go

@ -16,7 +16,6 @@ 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"
@ -797,11 +796,7 @@ func NewServer(bind string, options ...Option) (*Server, error) {
Handler: logger.New(logger.Options{
Prefix: "twtxt",
RemoteAddressHeaders: []string{"X-Forwarded-For"},
}).Handler(
gziphandler.GzipHandler(
sm.Handler(csrfHandler),
),
),
}).Handler(sm.Handler(csrfHandler)),
},
// API

Loading…
Cancel
Save