mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 05:16:35 +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