This commit is contained in:
Zheng Kai
2023-06-09 18:26:00 +08:00
parent 51e0b5807a
commit 3b6af69d84
12 changed files with 198 additions and 7 deletions

View File

@@ -36,5 +36,5 @@ func (c *Core) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Add(`Content-Type`, `application/json`)
w.Write(ab)
go doMetrics(ab, cached, r)
go doMetrics(ab, cached, r, len(p.Body))
}