From a18a02798648ed36d085be5d6c50c627c566c03c Mon Sep 17 00:00:00 2001 From: Miguel Molina Date: Wed, 7 Dec 2016 10:48:38 +0100 Subject: [PATCH] Write the status to the public writer --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index df001a40..e538c2a3 100644 --- a/context.go +++ b/context.go @@ -376,7 +376,7 @@ func (c *Context) requestHeader(key string) string { /************************************/ 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)