From dd48c0546254536f3aa85fe46ca017459c0d4fe7 Mon Sep 17 00:00:00 2001 From: marvell Date: Tue, 24 May 2016 14:11:01 +0300 Subject: [PATCH] write status code in external writer too --- context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/context.go b/context.go index 5d3b6a4e..c715343c 100644 --- a/context.go +++ b/context.go @@ -344,6 +344,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)