mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-06 22:24:06 +00:00
Update vendor (#852)
This commit is contained in:
5
vendor/github.com/labstack/echo/v4/response.go
generated
vendored
5
vendor/github.com/labstack/echo/v4/response.go
generated
vendored
@ -67,7 +67,10 @@ func (r *Response) WriteHeader(code int) {
|
||||
// Write writes the data to the connection as part of an HTTP reply.
|
||||
func (r *Response) Write(b []byte) (n int, err error) {
|
||||
if !r.Committed {
|
||||
r.WriteHeader(http.StatusOK)
|
||||
if r.Status == 0 {
|
||||
r.Status = http.StatusOK
|
||||
}
|
||||
r.WriteHeader(r.Status)
|
||||
}
|
||||
n, err = r.Writer.Write(b)
|
||||
r.Size += int64(n)
|
||||
|
Reference in New Issue
Block a user