mirror of
https://github.com/labstack/echo.git
synced 2025-07-13 01:30:31 +02:00
Response reset size
Set size to 0 when response reset Prevents logged size accumulating with each request
This commit is contained in:
@ -76,6 +76,7 @@ func (r *Response) Size() int64 {
|
||||
|
||||
func (r *Response) reset(w http.ResponseWriter) {
|
||||
r.writer = w
|
||||
r.size = 0
|
||||
r.status = http.StatusOK
|
||||
r.committed = false
|
||||
}
|
||||
|
Reference in New Issue
Block a user