diff --git a/context.go b/context.go index 5dc7f8a0..496016c7 100644 --- a/context.go +++ b/context.go @@ -711,7 +711,7 @@ func bodyAllowedForStatus(status int) bool { // Status sets the HTTP response code. func (c *Context) Status(code int) { - c.writermem.WriteHeader(code) + c.Writer.WriteHeader(code) } // Header is a intelligent shortcut for c.Writer.Header().Set(key, value).