mirror of
https://github.com/gin-gonic/gin.git
synced 2025-12-18 16:57:26 +08:00
fix: status method is useless
This commit is contained in:
parent
9f5ecd4be4
commit
9b2a9e20a1
@ -68,6 +68,8 @@ func (w *responseWriter) WriteHeader(code int) {
|
||||
return
|
||||
}
|
||||
w.status = code
|
||||
w.size = 0
|
||||
w.ResponseWriter.WriteHeader(code)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user