From aca2723100f944603491848c7e5e2d0a447967b8 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Sat, 11 Feb 2023 01:17:26 +0300 Subject: [PATCH] fixup Signed-off-by: Vasiliy Tolstov --- handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handler.go b/handler.go index de185ef..6043365 100644 --- a/handler.go +++ b/handler.go @@ -73,6 +73,7 @@ func (h *httpServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { } ctx := context.WithValue(r.Context(), rspCodeKey{}, &rspCodeVal{}) + ctx = context.WithValue(ctx, rspHeaderKey{}, &rspHeaderVal{}) md, ok := metadata.FromIncomingContext(ctx) if !ok { md = metadata.New(len(r.Header) + 8)