We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef6f6fb commit a22bf48Copy full SHA for a22bf48
pkg/cosmoseed/http.go
@@ -1,7 +1,6 @@
1
package cosmoseed
2
3
import (
4
- "encoding/json"
5
"net/http"
6
"strings"
7
)
@@ -18,6 +17,5 @@ func (s *Seeder) handlePeers(w http.ResponseWriter, r *http.Request) {
18
17
peerList = append(peerList, p.String())
19
}
20
21
- w.Header().Set("Content-Type", "application/json")
22
- json.NewEncoder(w).Encode(strings.Join(peerList, ","))
+ w.Write([]byte(strings.Join(peerList, ",")))
23
0 commit comments