aboutsummaryrefslogtreecommitdiffstats
path: root/modules/context/response.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/context/response.go')
-rw-r--r--modules/context/response.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/response.go b/modules/context/response.go
index 4ffbd230a2..a20fc63536 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
}