mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-17 14:12:16 +08:00
Write the status to the public writer
This commit is contained in:
parent
e2212d40c6
commit
a18a027986
@ -376,7 +376,7 @@ func (c *Context) requestHeader(key string) string {
|
|||||||
/************************************/
|
/************************************/
|
||||||
|
|
||||||
func (c *Context) Status(code int) {
|
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)
|
// Header is a intelligent shortcut for c.Writer.Header().Set(key, value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user