Skip to content

Commit 4679daa

Browse files
Use Writer in Context.Status
1 parent c65e5ef commit 4679daa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

context.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ func bodyAllowedForStatus(status int) bool {
659659

660660
// Status sets the HTTP response code.
661661
func (c *Context) Status(code int) {
662-
c.writermem.WriteHeader(code)
662+
c.Writer.WriteHeader(code)
663663
}
664664

665665
// Header is a intelligent shortcut for c.Writer.Header().Set(key, value).

0 commit comments

Comments
 (0)