Set RPC content type to applicaton/json.

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

View file

@ -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.