Skip to content

Commit

Permalink
Merge PR #6855: Allow passing through Content-Type (needed for POST)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey authored Jul 27, 2020
1 parent 302487c commit 9d00f71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/lcd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ func (rs *RestServer) Start(listenAddr string, maxOpen int, readTimeout, writeTi

var h http.Handler = rs.Mux
if cors {
h = handlers.CORS()(h)
allowAllCORS := handlers.CORS(handlers.AllowedHeaders([]string{"Content-Type"}))
h = allowAllCORS(h)
}

return tmrpcserver.Serve(rs.listener, h, rs.log, cfg)
Expand Down

0 comments on commit 9d00f71

Please sign in to comment.