Skip to content

Commit 5e3c9d6

Browse files
authored
Merge pull request ethereum#94 from holisticode/network-testing-framework
p2p/simulations: eventstream backend double-backslash on init
2 parents bdf4ba0 + 7c05c84 commit 5e3c9d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

p2p/simulations/http.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ func (s *Server) StreamNetworkEvents(w http.ResponseWriter, req *http.Request) {
466466

467467
w.Header().Set("Content-Type", "text/event-stream; charset=utf-8")
468468
w.WriteHeader(http.StatusOK)
469+
fmt.Fprintf(w, "\n\n")
469470
if fw, ok := w.(http.Flusher); ok {
470471
fw.Flush()
471472
}

0 commit comments

Comments
 (0)