Skip to content

Commit

Permalink
fix: superfluous response.WriteHeader call
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyXiang committed Feb 15, 2022
1 parent c62b372 commit e1205eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion handler/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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)
}

0 comments on commit e1205eb

Please sign in to comment.