Skip to content

Commit

Permalink
drop attempt to parse form in limiter, conflicts with form body
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Jun 7, 2021
1 parent fb57a6b commit 687e78e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/proxy/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ func maxReqSizeHandler(maxSize int64) func(next http.Handler) http.Handler {
}

r.Body = http.MaxBytesReader(w, r.Body, maxSize)
if err := r.ParseForm(); err != nil {
http.Error(w, "Request Entity Too Large", http.StatusRequestEntityTooLarge)
return
}
next.ServeHTTP(w, r)
}
return http.HandlerFunc(fn)
Expand Down

0 comments on commit 687e78e

Please sign in to comment.