aboutsummaryrefslogtreecommitdiff
path: root/transport
diff options
context:
space:
mode:
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 {