Skip to content

Commit

Permalink
Use Writer in Context.Status
Browse files Browse the repository at this point in the history
  • Loading branch information
will@newrelic.com committed Oct 24, 2018
1 parent c65e5ef commit 4679daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,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).
Expand Down

0 comments on commit 4679daa

Please sign in to comment.