mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 13:22:09 +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
|
return
|
||||||
}
|
}
|
||||||
w.status = code
|
w.status = code
|
||||||
|
w.size = 0
|
||||||
|
w.ResponseWriter.WriteHeader(code)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user