Skip to content

Commit

Permalink
Use Writer in Context.Status (#1606)
Browse files Browse the repository at this point in the history
  • Loading branch information
willnewrelic authored and appleboy committed Oct 17, 2019
1 parent 1a1cf65 commit 0ce4661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
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 0ce4661

Please sign in to comment.