add gzip rsp #153 #182

Merged
vtolstov merged 6 commits from kgorbunov/micro-server-http:#153 into master 2024-03-11 12:31:20 +03:00
Showing only changes of commit da92725f10 - Show all commits

View File

@ -86,7 +86,7 @@ func (h *Handler) Metrics(ctx context.Context, req *codecpb.Frame, rsp *codecpb.
gz := gzipPool.Get().(*gzip.Writer)
defer gzipPool.Put(gz)
gz.Reset(buf)
gz.Reset(w)
defer gz.Close()
w = gz