From 4679daa8e584ea79e41e5ab44e99e2263b31e3a8 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 c8a59bb0a0..03fcf776f0 100644 --- a/context.go +++ b/context.go @@ -659,7 +659,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).