aboutsummaryrefslogtreecommitdiff
path: root/transport
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2022-05-22 02:56:12 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2022-05-22 02:56:33 +0300
commit262768e3a2298c9ae51bab238b55e2d5483233f6 (patch)
tree9ca6238eef2a300f1202429a391e12f714c2b82e /transport
parentc5a9af19b1e4510e24be088ce1a67895964f2167 (diff)
Fix http transport send headersv1.0.1
Diffstat (limited to 'transport')
-rw-r--r--transport/http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport/http.go b/transport/http.go
index 663bb31..a795b10 100644
--- a/transport/http.go
+++ b/transport/http.go
@@ -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 {