diff --git a/handler/init.go b/handler/init.go index d02b63b..75318be 100644 --- a/handler/init.go +++ b/handler/init.go @@ -11,6 +11,7 @@ import ( "github.com/RoyXiang/plexproxy/common" "github.com/go-redis/redis/v8" + "github.com/urfave/negroni" "github.com/victorspringer/http-cache" ) @@ -51,5 +52,6 @@ func init() { } func Handler(w http.ResponseWriter, r *http.Request) { - proxy.ServeHTTP(w, r) + lrw := negroni.NewResponseWriter(w) + proxy.ServeHTTP(lrw, r) }