Skip to content

Commit a22bf48

Browse files
chore(http): output raw string in peers endpoint
1 parent ef6f6fb commit a22bf48

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/cosmoseed/http.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package cosmoseed
22

33
import (
4-
"encoding/json"
54
"net/http"
65
"strings"
76
)
@@ -18,6 +17,5 @@ func (s *Seeder) handlePeers(w http.ResponseWriter, r *http.Request) {
1817
peerList = append(peerList, p.String())
1918
}
2019

21-
w.Header().Set("Content-Type", "application/json")
22-
json.NewEncoder(w).Encode(strings.Join(peerList, ","))
20+
w.Write([]byte(strings.Join(peerList, ",")))
2321
}

0 commit comments

Comments
 (0)