Fix http transport send headers
This commit is contained in:
parent
c5a9af19b1
commit
262768e3a2
1 changed files with 1 additions and 1 deletions
|
@ -20,8 +20,8 @@ func (h *HTTP) Run(ctx context.Context, resolver Resolver) error {
|
||||||
w.WriteHeader(http.StatusMethodNotAllowed)
|
w.WriteHeader(http.StatusMethodNotAllowed)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
w.Header().Add("Content-Type", "application/json")
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
w.Header().Set("Content-Type", "application/json")
|
|
||||||
resolver.Resolve(ctx, r.Body, w)
|
resolver.Resolve(ctx, r.Body, w)
|
||||||
}),
|
}),
|
||||||
BaseContext: func(l net.Listener) context.Context {
|
BaseContext: func(l net.Listener) context.Context {
|
||||||
|
|
Loading…
Reference in a new issue