From bdaa5f7f8dd05a4b21e04ba5b9a4bff4d19c7c1c Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 24 Apr 2014 23:19:07 -0500 Subject: [PATCH] Set RPC content type to applicaton/json. Closes #121. --- rpcserver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpcserver.go b/rpcserver.go index 6c2ced06..8d4d9994 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -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.