forked from lug/matterbridge
Update vendor (#852)
This commit is contained in:
+4
-1
@@ -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