From 2ad52b5370585ff8b65808d787d2ac9f2f3665e9 Mon Sep 17 00:00:00 2001 From: "will@newrelic.com" Date: Wed, 24 Oct 2018 10:58:29 -0700 Subject: [PATCH] Use Writer in Context.Status --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index 5dc7f8a0f5..496016c7da 100644 --- a/context.go +++ b/context.go @@ -711,7 +711,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).