parent
765dbb443d
commit
bdaa5f7f8d
1 changed files with 1 additions and 0 deletions
|
@ -170,6 +170,7 @@ func (s *rpcServer) Start() {
|
||||||
}
|
}
|
||||||
rpcServeMux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
rpcServeMux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Connection", "close")
|
w.Header().Set("Connection", "close")
|
||||||
|
w.Header().Set("Content-Type", "application/json")
|
||||||
r.Close = true
|
r.Close = true
|
||||||
|
|
||||||
// Limit the number of connections to max allowed.
|
// Limit the number of connections to max allowed.
|
||||||
|
|
Loading…
Add table
Reference in a new issue