Use Writer in Context.Status

This commit is contained in:
will@newrelic.com 2018-10-24 10:58:29 -07:00
parent 11407e73ad
commit 2ad52b5370

View File

@ -711,7 +711,7 @@ func bodyAllowedForStatus(status int) bool {
// Status sets the HTTP response code. // Status sets the HTTP response code.
func (c *Context) Status(code int) { 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). // Header is a intelligent shortcut for c.Writer.Header().Set(key, value).