Write the status to the public writer

This commit is contained in:
Miguel Molina 2016-12-07 10:48:38 +01:00 committed by GitHub
parent e2212d40c6
commit a18a027986

View File

@ -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)