From b9db92df0bcf84fec7028ac46eb061a88d236d19 Mon Sep 17 00:00:00 2001 From: zhuwei01 Date: Mon, 10 Jun 2019 09:42:22 +0800 Subject: [PATCH] modify context.Status() --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index ffb9a2de..cfb0511f 100644 --- a/context.go +++ b/context.go @@ -739,7 +739,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).