Fix http transport send headers

This commit is contained in:
Александр Кирюхин 2022-05-22 02:56:12 +03:00
parent c5a9af19b1
commit 262768e3a2
No known key found for this signature in database
GPG key ID: 6DF7A2910D0699E9

View file

@ -20,8 +20,8 @@ func (h *HTTP) Run(ctx context.Context, resolver Resolver) error {
w.WriteHeader(http.StatusMethodNotAllowed)
return
}
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
w.Header().Set("Content-Type", "application/json")
resolver.Resolve(ctx, r.Body, w)
}),
BaseContext: func(l net.Listener) context.Context {