Skip to content

Commit 2ad52b5

Browse files
Use Writer in Context.Status
1 parent 11407e7 commit 2ad52b5

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
@@ -711,7 +711,7 @@ func bodyAllowedForStatus(status int) bool {
711711

712712
// Status sets the HTTP response code.
713713
func (c *Context) Status(code int) {
714-
c.writermem.WriteHeader(code)
714+
c.Writer.WriteHeader(code)
715715
}
716716

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

0 commit comments

Comments
 (0)