Skip to content

Commit e1205eb

Browse files
committed
fix: superfluous response.WriteHeader call
1 parent c62b372 commit e1205eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

handler/init.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111

1212
"github.com/RoyXiang/plexproxy/common"
1313
"github.com/go-redis/redis/v8"
14+
"github.com/urfave/negroni"
1415
"github.com/victorspringer/http-cache"
1516
)
1617

@@ -51,5 +52,6 @@ func init() {
5152
}
5253

5354
func Handler(w http.ResponseWriter, r *http.Request) {
54-
proxy.ServeHTTP(w, r)
55+
lrw := negroni.NewResponseWriter(w)
56+
proxy.ServeHTTP(lrw, r)
5557
}

0 commit comments

Comments
 (0)