Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
fixed issue with multiple response headers being written for some
Browse files Browse the repository at this point in the history
prewares fixes #861
  • Loading branch information
markbates committed Jan 18, 2018
1 parent 136109a commit 1a7c88a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,7 @@ func (a *App) processPreHandlers(res http.ResponseWriter, req *http.Request) boo
sh := func(h http.Handler) bool {
h.ServeHTTP(res, req)
if br, ok := res.(*Response); ok {
if (br.Status < 200 || br.Status > 299) && br.Status > 0 {
return false
}
if br.Size > 0 {
if br.Status > 0 || br.Size > 0 {
return false
}
}
Expand Down

0 comments on commit 1a7c88a

Please sign in to comment.