diff --git a/modules/context/response.go b/modules/context/response.go index 4ffbd230a20d..a20fc63536e0 100644 --- a/modules/context/response.go +++ b/modules/context/response.go @@ -49,7 +49,7 @@ func (r *Response) Write(bs []byte) (int, error) { return size, err } if r.status == 0 { - r.WriteHeader(200) + r.status = http.StatusOK } return size, nil }