2
0
mirror of https://github.com/kaspanet/kaspad.git synced 2025-03-30 15:08:33 +00:00

Set RPC content type to applicaton/json.

Closes .
This commit is contained in:
Dave Collins 2014-04-24 23:19:07 -05:00
parent 765dbb443d
commit bdaa5f7f8d

@ -170,6 +170,7 @@ func (s *rpcServer) Start() {
}
rpcServeMux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Connection", "close")
w.Header().Set("Content-Type", "application/json")
r.Close = true
// Limit the number of connections to max allowed.