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 Apr 23, 2019
1 parent 11407e7 commit 2ad52b5
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 @@ -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).
Expand Down

0 comments on commit 2ad52b5

Please sign in to comment.