Skip to content

Commit

Permalink
Use Writer in Context.Status (gin-gonic#1606)
Browse files Browse the repository at this point in the history
  • Loading branch information
willnewrelic authored and ThomasObenaus committed Feb 19, 2020
1 parent b05e87a commit 4a983ba
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 @@ -744,7 +744,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 4a983ba

Please sign in to comment.